I'm trying to test the code from example with a small addition (map.toString()):
try { FieldList fieldList; Map map; fieldList.addUInt( 1, 64 ) .addReal( 6, 11, OmmReal::ExponentNeg2Enum ) .addDate( 16, 1999, 11, 7 ) .addTime( 18, 02, 03, 04, 005 ) .complete(); map.addKeyAscii( "entry_1", MapEntry::AddEnum, fieldList ); map.complete(); const auto& res = map.toString(); } catch ( const OmmException& excp ) { cout << excp << endl; }
map.toString() - results in the access violation. What im doing wrong?