Promote smart pointers and BOOST_NO_MEMBER_TEMPLATES

After some attempts, I managed to raise the smart pointers to create for Windows CE / Mobile at warning level 4.

I found a way of least resistance to get rid of compilation errors and warnings

#define BOOST_NO_MEMBER_TEMPLATES

What does this mean? I sold my soul to the devil? Will all hell break when I actually use types?

+5
source share
1 answer

There should not be any bad effects as such, just a loss of functionality.

A member template is a member function that is a template, for example:

struct foo
{
    template <typename T>
    void i_am_not_supported_sometimes(void);
};

, undefined - , . , " " , , .

smart_ptr, , - -, :

template<class Y>
explicit shared_ptr( Y * p ): px( p ), pn( p ) // Y must be complete
{
    boost::detail::sp_enable_shared_from_this( this, p, p );
}

Y T, .

+4

All Articles