Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-01-16 18:25:44


Sergey Pisarchik writes:
> Good day to All.
>
> Working with boost::mpl recieve subj.
>
> How to solve this problem?

It's hard to say without seeing the code; see http://tinyurl.com/6uug7
for one possible solution.

> Will it be solved in next VC++?

This is a question for the Microsoft folks. You can ask it, for
example, on news:microsoft.public.dotnet.languages.vc.

>
> My solution for boost.
> In mpl everywhere you wrote:
>
> typedef smth type;
>
> may be it better to write:
>
> struct type : public smpth {};
>
> (or, as was discussed before:
>
> struct type1 : public smpth {};
> typedef tepe1 type;
> )
>
> if smth is very-very long name, then for compiler:
> in first case type is very-very long name.
> in second type is simply "type" and it is only 4 letters.
>
> Would the compiler work correctly? Faster? Slower? Other
> points/goals?

Most of the MPL algorithms are required to operate on all types,
including the ones you cannot derive from.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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