Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2005-09-13 12:51:23


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk