以下をコンパイルします。
// file main.cpp
#include <string>
#include <boost/lexical_cast.hpp>
int main()
{
boost::lexical_cast<std::string>( 656.16 );
return 0;
}
これに帰着します:
/usr/local/include/boost/lexical_cast.hpp:1184: warning: ISO C++ does not support the ‘%lg’ printf format
なんで?この警告を回避するにはどうすればよいですか?