After checking the code carefully, I figured out the macro is wrong and the compiler error is correct. Apparently, other compilers do not catch this issue.
#define SNUM(x) static_cast<const std::ostringstream &>(std::ostringstream() << std::dec << x).str()
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: