Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-01-27 13:18:02


"Tobias Schwinger" <tschwinger_at_[hidden]> wrote

> [discussing approach with the function type...]

So, if we decided to implement this approach, the following would need to be
done:

1) change encode_type to modify the type before forwarding it to
encode_type_impl, such as (pseudo-code):

    if (void)
        typedef my_return_type(*)(my_void) type;
    else if (const void)
        typedef my_return_type(*)(my_const_void) type;
    ...
    else
        typedef my_return_type(*)(T) type;

    (using function pointer would probably be more portable)

2) change all specializations of encode_type_impl to specialize on
my_return_type(*)(T) instead of T, and to restore the special types;

3) implement REGISTER_SPEC in terms of parenthesized parameter.

Do I understand this correctly?

As far as wrapping is concerned, Outlook Express forces me to enter a value
between 30 and 132 :-(

Regards,
Arkadiy


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