Boost Format Problem with empty strings

Hi I'm using Visual C++ 8.0 and I tried to run the following code, which seems to crash with assertion (NULL POINTER) at debug time: (boost::format( "Something %1%") % std::string()).str() It seems that it doesn't like empty strings in placeholders at all. Is it a bug or is it as designed? Thanks Catalin

Catalin Pitis wrote:
Hi
I'm using Visual C++ 8.0 and I tried to run the following code, which seems to crash with assertion (NULL POINTER) at debug time:
(boost::format( "Something %1%") % std::string()).str()
It seems that it doesn't like empty strings in placeholders at all. Is it a bug or is it as designed?
Thanks Catalin _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I think it's a bug of vc8, I meet this before and just change vc's code. Wang Yun
participants (2)
-
Catalin Pitis
-
Wang Yun