On 21 January 2016 at 14:53, Nicolás Alvarez <[email protected]> wrote:
> > > El 21 ene 2016, a las 07:23, Gianfranco Costamagna < > [email protected]> escribió: > > >> ./sched_msgs.h:46:21: error: unable to find string literal operator > 'operator""x' with 'const char [6]', 'long unsigned int' arguments > >> #define _(x) "_(\""x"\")" > > Maybe adding spaces is enough to avoid having it interpreted as the new > C++11 custom string literal operator: > > #define _(x) "_(\"" x "\")" > > which is also more readable. > > I wonder if this is a gcc-6 bug though. > Not a GCC bug. g++ 4.8.4 with -std=gnu++11 gives a warning about it: sched_msgs.h:46:14: warning: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wliteral-suffix] #define _(x) "_(\""x"\")" Spaces around x is correct way to fix it. -Juha _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
