- C++ problems and decimal bignum - 1 Update
- "In STL maps, is it better to use map::insert than []?" - 3 Updates
Vir Campestris <vir.campestris@invalid.invalid>: Oct 09 09:19PM +0100 > The message really was "link error". That seems unlikely. I'll believe it _started_ link error > It appears that there was a mismatch of characteristics like "const" between a function declaration and implementation, which led a misspelled unresolved external. But the message didn't say that. ... and some of those words followed it. Next time copy-paste the text. Andy |
Lynn McGuire <lmc@winsim.com>: Oct 09 01:38PM -0500 "In STL maps, is it better to use map::insert than []?" http://stackoverflow.com/questions/326062/in-stl-maps-is-it-better-to-use-mapinsert-than I have a std::map where insert works better than []. The code compiles but crashes in the 2nd or 2rd copy constructor call with a null right hand side. Lynn |
Victor Bazarov <v.bazarov@comcast.invalid>: Oct 09 02:59PM -0400 On 10/9/2015 2:38 PM, Lynn McGuire wrote: > I have a std::map where insert works better than []. The code compiles > but crashes in the 2nd or 2rd copy constructor call with a null right > hand side. http://www.dietmar-kuehl.de/mirror/c++-faq/how-to-post.html#faq-5.8 V -- I do not respond to top-posted replies, please don't ask |
Paavo Helde <myfirstname@osa.pri.ee>: Oct 09 02:19PM -0500 > "In STL maps, is it better to use map::insert than []?" Depends on the usage, otherwise STL would not offer both options. > The code > compiles but crashes in the 2nd or 2rd copy constructor call with a > null right hand side. There is a bug in your code. Cheers Paavo |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment