Excess elements in scalar initializer
Posted
by
Wade Williams
on Stack Overflow
See other posts from Stack Overflow
or by Wade Williams
Published on 2011-03-17T00:06:52Z
Indexed on
2011/03/17
0:10 UTC
Read the original article
Hit count: 233
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?
© Stack Overflow or respective owner