This doesn't compile,
Code: Select all
#define __USE_STD_IOSTREAM
#include <iostream>
#include <boost/lexical_cast.hpp>
int main(int argc, char** argv) {
std::string tmp = boost::lexical_cast<std::string>(argc);
std::cout << tmp << '\n';
}
Code: Select all
!(boost::detail::is_character<Target>::value) &&
..................................................................^
%CXX-E-EXPPRIMEXPR, expected an expression
at line number 76 in file VARIOUS:[boost.lexical_cast]try_lexical_convert.hpp;1
> type;
................^
%CXX-W-ENDFLUSH, parsing restarts here after previous syntax error
at line number 80 in file VARIOUS:[boost.lexical_cast]try_lexical_convert.hpp;1
%CXX-I-MESSAGE, 1 error detected in the compilation of "SOME_NAME:[SOME_DIR]test.cpp;20".