Excess elements in scalar initializer
- by Wade Williams
I'm pretty noobish when it comes to C++ STL stuff.
After a compiler upgrade, I'm getting:
error: Semantic Issue: Excess elements in scalar initializer
on the call:
Certificate *tempcert;
cValType( tempPerson->name, tempcert );
with a typedef of:
typedef std::map< string, certificate* >::value_type cValType;
I'm not certain what this error is telling me or how to fix it. (Ok, I realize it's telling me excess elements, but it looks like it matches the map prototype to me, so I'm confused.)
Suggestions?