|
Deletion of objects whose reference is holded in static map instances On 23 Noi, 17:32, jayaramganapa...(a)gmail.com wrote: Hello friends, I have a map like std::map< std::string , std::map<std::string, std::string>* > EpPropCache::propertyCache ; (This is a static instance and taken from *.cpp file) As you can see the value is a pointer to another map. I do new of ... 26 Nov 2007 06:18
How do you make a global const array that requires a function? On Nov 25, 7:13 pm, Vidar Hasfjord <vattilah-gro...(a)yahoo.co.uk> wrote: On Nov 25, 11:43 am, "Hak...(a)gmail.com" <Hak...(a)gmail.com> wrote: ...static...singletons... Will google, but I definitely want constant instead of static. After staring at my code, I decided to put the array holding every element in ... 26 Nov 2007 06:18
Bug with Visual Studio Optimizer? The following code prints GOOD in debug mode, and BAD in release mode. Is that allowed by the standard? This was the root cause of a very difficult to hunt down bug in my program, where I was using the function addresses as keys into a map. I am wondering if I should submit a bug report to Microsoft. #include... 10 Dec 2007 00:00
undefined reference Can anyone help: When I compile this code, I'm getting [{Linker error] undefined reference to 'getData(WeatherStats*,int)' I'm not sure what is causing the error. Thanks Art // This program creates a weather stat structure // and calculates avg. monthly rainfall, total // annual rainfall, annual hig... 25 Nov 2007 06:46
std::ofstream without ios_base::out? Hello everyone! A file can be opened in two ways with std::ofstream: Using its constructor or with std::ofstream::open(). Both have a formal parameter of type ios::base::openmode with ios_base::out as a default argument. Now what if you want to open a file for appending? Can you code as follows? std::ofstrea... 10 Dec 2007 00:00
where does it make business sense to use C++ instead of java? apm35(a)student.open.ac.uk wrote: I do see problems with java but these problems do not seem to get in the way of coding. For example, from what I have seen, machines where java is used extensively seem to fill up with JVM instances that each take up quite a bit of memory. <snip> But you don't get that... 10 Dec 2007 00:00
Deletion of objects whose reference is holded in static map instances jayaramganapathy(a)gmail.com wrote: Hello friends, I have a map like std::map< std::string , std::map<std::string, std::string>* > EpPropCache::propertyCache ; (This is a static instance and taken from *.cpp file) As you can see the value is a pointer to another map. I do new of std::map<... 23 Nov 2007 16:14
LinkedHashMap in C++ On Nov 23, 11:36 am, Mathias Gaunard <loufo...(a)gmail.com> wrote: On 22 nov, 13:27, ap...(a)student.open.ac.uk wrote: I have recently started using java and have come across the LinkedHashMap. For those not in the know this is like a hash table (ie fast indexing via hash function) but also has the nea... 26 Nov 2007 06:18
Template class function overloading On 23 Nov., 09:36, Ashwin Nanjappa <ashwi...(a)gmail.com> wrote: Please have a look at the code below. Why does the compiler give me an error indicating that the dummy(char) has "replaced" the dummy(MyStruct) version of the dummy function? Why can't I keep both versions of the dummy() function? Because the... 23 Nov 2007 07:12
Virtual function calls at compile time [Sorry, I mistakenly posted this in comp.std.c++. It was my first post, so I didn't receive the information about the group until after I received an email from Robo moderator] { It's fine, as long as your post didn't make it to any wrong group. :) -mod } Hello. I have a question regarding the performance ... 10 Dec 2007 00:00 |