I puzzled over a simple piece of code which relates to gcc 4.7.4 installation issues or may be to an existing bug in gcc itself...?
std::map
does not work, the sample code below where Key, Value are both integers fails in less <
operator.
I have found some posts that sited some issues with comparing std::map keys in gcc 4.7, but nothing really conclusive.
compile options: g++ -g -c -std=c++11 -Wall -static-libstdc++ -o mslarblogger.o -DUSE_JEMALLOC=1 -I.
typedef std::map<int, int> MySessionMap;
MySessionMap my_sessions_;
my_sessions_[1] = 1;
// core dumping with segmentation fault after the first insertion above in less < operator...
my_sessions_[2] = 2;
my_sessions_[3] = 3;