[ create a new paste ] login | about

Link: http://codepad.org/4JvVd3XE    [ raw code | output | fork ]

C++, pasted on Mar 9:
1
2
3
4
5
6
7
8
9
10
11
typedef int (*CLI_Function ) ( std::vector <std::string> arguments, void * data );
typedef std::map <std::string,CLI_Function> FunctionMap;
 
using namespace std;
int main( void )
{
        FunctionMap fm;
 
        FunctionMap::iterator it = fm.begin();
it->second;
}


Output:
1
2
3
4
5
6
7
8
9
10
11
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/debug/safe_iterator.h:196:
    error: attempt to dereference a past-the-end iterator.

Objects involved in the operation:
iterator "this" @ 0x0xbf7d1f38 {
type = N11__gnu_debug14_Safe_iteratorISt17_Rb_tree_iteratorISt4pairIKSsPFiN15__gnu_debug_def6vectorISsSaISsEEEPvEEENS4_3mapISsSA_St4lessISsESaISB_EEEEE (mutable iterator);
  state = past-the-end;
  references sequence with type `N15__gnu_debug_def3mapISsPFiNS_6vectorISsSaISsEEEPvESt4lessISsESaISt4pairIKSsS6_EEEE' @ 0x0xbf7d1f38
}

Disallowed system call: SYS_kill


Create a new paste based on this one


Comments: