Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-11-08 18:18:35


"Tom Brinkman" <reportbase_at_[hidden]> wrote in message
news:30f04db60611041254n3bf7eed9lb684344721bdb819_at_mail.gmail.com...

Some quick impressions re function_types:

function types initial thoughts

Examples

VC7.1 tested. Several examples don't compile. Get these messages
below------->.(Other examples compile ok. OTOH is result_of_example not
actually just a test?)

 Also get following warning Not sure if its from function types lib or cl:

ATTENTION: /Gd /Gr /Gz compiler options will not
ATTENTION: work with this configuration.

Seeing as I have no choice other than to select one of these... I am amused.

Hopefully will have more to say and do a proper review soon too.

regards
Andy Little

//-----------------------------
Compiling...
fast_mem_fn_example.cpp
ATTENTION: /Gd /Gr /Gz compiler options will not
ATTENTION: work with this configuration.
c:\boost\include\boost-1_34_0\libs\function_types\example\fast_mem_fn_example.cpp(104)
: error C2975: 'Callee' : invalid template argument for
'example::fast_mem_fn_maker<MFPT>::make_fast_mem_fn', compile-time
evaluatable constant expression expected
        with
        [
            MFPT=int (test::* )(void) const
        ]
        c:\boost\include\boost-1_34_0\libs\function_types\example\fast_mem_fn.hpp(110)
: see declaration of 'Callee'

//----------------------------

Compiling...
interface_example.cpp
ATTENTION: /Gd /Gr /Gz compiler options will not
ATTENTION: work with this configuration.
c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(19)
: error C2440: 'initializing' : cannot convert from 'overloaded-function' to
'boost::function_types::function_pointer<Types>::type'
        with
        [
            Types=example::concat_view<interface_x::vtable::inf2<>::result,boost::mpl::transform_view<interface_x::vtable::inf2<>::params,example::param_type<boost::mpl::_>>>
        ]
        None of the functions with this name in scope match the target type
        c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xlocnum(806) : while compiling class-template static data
member 'const interface_x::vtable interface_x::vtable_holder<T>::val_vtable'
        with
        [
            T=a_class
        ]
        c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(19)
: see reference to class template instantiation
'interface_x::vtable_holder<T>' being compiled
        with
        [
            T=a_class
        ]
        c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(69)
: see reference to function template instantiation
'interface_x::interface_x<a_class>(T &)' being compiled
        with
        [
            T=a_class
        ]
c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(19)
: error C2440: 'initializing' : cannot convert from 'overloaded-function' to
'boost::function_types::function_pointer<Types>::type'
        with
        [
            Types=example::concat_view<interface_x::vtable::inf2<>::result,boost::mpl::transform_view<interface_x::vtable::inf2<>::params,example::param_type<boost::mpl::_>>>
        ]
        None of the functions with this name in scope match the target type
        c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xlocnum(806) : while compiling class-template static data
member 'const interface_x::vtable interface_x::vtable_holder<T>::val_vtable'
        with
        [
            T=another_class
        ]
        c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(19)
: see reference to class template instantiation
'interface_x::vtable_holder<T>' being compiled
        with
        [
            T=another_class
        ]
        c:\boost\include\boost-1_34_0\libs\function_types\example\interface_example.cpp(74)
: see reference to function template instantiation
'interface_x::interface_x<another_class>(T &)' being compiled
        with
        [
            T=another_class
        ]

Build log was saved at "file://d:\Projects\Test\Debug\BuildLog.htm"
Test - 2 error(s), 0 warning(s)

---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

//----------------------------


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