
13 Sep
2005
13 Sep
'05
5:51 p.m.
Alexey Bakhvalov <bakhvalov <at> gmail.com> writes:
The following example doesn't compile under VC7.1 and VC8.0b2:
typedef void (*TFunc)(); map<const wchar_t *, TFunc> next = boost::assign::map_list_of<const wchar_t *, TFunc> (L"test1", &func1<char>) (L"test2", &func2<char>) ; }
why do you need to specify the types in map_list_of?
[/code]
But if I replace (L"test2", &func2<char>) with (L"test2", &func) or (std::make_pair(L"test2", &func2<char>)) then everything works fine.
what makes you think this is a problem with boost.assign? br -Thorsten