RE: [Boost-Users] Re: pool_allocator problems on VC7.1 (real release)
John Harris
Ben Hutchings wrote:
I compiled almost the exact same code:
#include
#include <map> #include <utility> typedef std::basic_string
t; int main() { std::map
> > m; } with VC++ 7.0 and Boost 1.29, and got no warnings or errors at all.
Ah, yes, that works for me, too (no warning, either), but try adding a line of code that actually uses the map, like this:
m["abc"] = "def";
and you get the following cascade of errors: <snip>
Which all indicates that operator< is not defined for t, because we didn't include <string>. Let's not be so quick to blame the compiler. VC++ 7 is a long way ahead of version 6.
--- In Boost-Users@yahoogroups.com, "Ben Hutchings"
Which all indicates that operator< is not defined for t, because we didn't include <string>.
Hey, you're right. Adding #include <string> worked. Thanks.
Let's not be so quick to blame the compiler. VC++ 7 is a long way ahead of version 6.
Oh, I agree. Are you kidding? I can't *wait* 'till we fully cut over to the new compiler. There's so much code I can clean up. Since it seems to work on VC7.1, it would be nice if the author had access to that compiler and could do some testing. In the mean time, I'll try some stuff with this new toy and report any further problems. jh
participants (2)
-
Ben Hutchings
-
John Harris