20 Nov
2003
20 Nov
'03
4:44 p.m.
I'm working on a project with strict requirements for the build settings, including mandatory warning level 4 and "treat warnings as errors". I discovered that lexical_cast causes warnings C4127, C4511, and C4512 when compiling with warning level 4 using VC7.1. Try the following code for a quick repro: #include <string> #include <iostream> #include "boost/lexical_cast.hpp" int main() { std::string helloFactor = boost::lexical_caststd::string( 7 ) ; std::cout << "Hello # " << helloFactor << std::endl ; return 0 ; } Builds fine at warning level 3, fails with /W4 and /WX. As an aside, what warning level is typically used by developers working on Boost? -Bruce Johnston Simba Technologies
7680
Age (days ago)
7680
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bruce Johnston