search for: wrap_format

Displaying 5 results from an estimated 5 matches for "wrap_format".

2016 Oct 12
2
RFC: General purpose type-safe formatting library
...doesn't exhibit UB when things don't match up, and it kindly asserts to warn you of the problem in the test suite, support runtime format strings can be very helpful. For example, it could allow you to wrap a call to format in some other function, like: template<typename... Ts> void wrap_format(const char *Format, Ts &&... Args) { dbgs().format(Format, ConvertArg(Args)...); } On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> wrote: > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > &gt...
2016 Oct 12
3
RFC: General purpose type-safe formatting library
...hings don't > match up, and it kindly asserts to warn you of the problem in the test > suite, support runtime format strings can be very helpful. For example, it > could allow you to wrap a call to format in some other function, like: > > template<typename... Ts> > void wrap_format(const char *Format, Ts &&... Args) { > dbgs().format(Format, ConvertArg(Args)...); > } > > On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> > wrote: > > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists....
2016 Oct 12
5
RFC: General purpose type-safe formatting library
...hings don't > match up, and it kindly asserts to warn you of the problem in the test > suite, support runtime format strings can be very helpful. For example, it > could allow you to wrap a call to format in some other function, like: > > template<typename... Ts> > void wrap_format(const char *Format, Ts &&... Args) { > dbgs().format(Format, ConvertArg(Args)...); > } > > On Wed, Oct 12, 2016 at 11:24 AM Mehdi Amini <mehdi.amini at apple.com> > wrote: > > On Oct 12, 2016, at 7:12 AM, Zachary Turner via llvm-dev < > llvm-dev at lists....
2016 Oct 12
2
RFC: General purpose type-safe formatting library
Ahh, UDLs also wouldn't permit non literal format strings, which is a deal breaker imo On Wed, Oct 12, 2016 at 7:03 AM Zachary Turner <zturner at google.com> wrote: > I'm not sure that would work well. The implementation relies on being able > to index into the parameter pack. How would you do that if each parameter > is streamed in? > > "{0} {1}"_fs(1, 2)
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...