|
From: | red floyd |
Subject: | Re: bizarre backtrace when trying to initialize std::map with std::pair array |
Date: | Wed, 27 Jun 2007 20:28:09 GMT |
User-agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
Benjamin Collins wrote:
int main() { std::map<std::string, void(*)()> mymap(pairs, array_size(pairs)); }I think you meant std::map<std::string, void(*)()> mymap(paris, pairs +array_size(pairs))); right? The second (non-default, non-copy) map constructor takes two iterators, not an interator and a size.
Yes, I did. My mistake. Thanks for the correction! :-)
[Prev in Thread] | Current Thread | [Next in Thread] |