id summary reporter owner description type status milestone component version severity resolution keywords cc 6132 lexical_cast with Source = void* broken in 1.48.0 jk_boost_bug@… nasonov "Since 1.48.0, lexical_cast does not compile anymore, where the Source type is void*. This worked fine in 1.47.0 and before. Example: {{{ #include #include #include int main(int argc, const char **argv) { int x = 0; void *ptr = &x; std::string s = boost::lexical_cast(ptr); std::cout << s << std::endl; return 0; } }}} Compiler output: {{{ ..../boost/lexical_cast.hpp: In static member function ‘static Target boost::detail::lexical_cast_do_cast::lexical_cast_impl(const Source&) [with Target = std::string, Source = void*]’: ..../boost/lexical_cast.hpp:1916: instantiated from ‘Target boost::lexical_cast(const Source&) [with Target = std::string, Source = void*]’ test.cpp:9: instantiated from here .../boost/lexical_cast.hpp:1742: error: invalid application of ‘sizeof’ to a void type }}} The problem seems to be that sizeof(void) is called in the calculation of 'const bool requires_stringbuf' (lexical_cast.hpp:1728)." Bugs closed To Be Determined lexical_cast Boost 1.48.0 Regression fixed