C++11 gotcha

Apr 23, 2013 23:07


#include

#define SIZET_FMT "z"

int main() {
printf("%"SIZET_FMT"d\n", sizeof(int));
}

$ g++ -std=c++11 -Wall t.cc
t.cc: In function 'int main()':
t.cc:6:24: error: unable to find string literal operator 'operator"" SIZET_FMT'
Previous post Next post
Up