Boost logo

Boost Users :

Subject: Re: [Boost-users] [assign] Default list_of() behavior
From: Ryan McConnehey (mccorywork_at_[hidden])
Date: 2010-08-06 12:19:43


Thorsten Ottosen wrote:
> Ryan McConnehey skrev:
>> Thorsten Ottosen wrote:
>>> Yes, the upcomming revision will fix this somehow without breaking
>>> exisiting code.
> no.
If not 1.44, any idea what release it would appear?

> If you look at the definition of list_of(), then you can easily add
> your own version that does what you want.

namespace assign
{
    //Current implementation
    template< class T >
    inline assign_detail::generic_list<T>
    list_of()
    {
        return assign_detail::generic_list<T>()( T() );
    }
}

Just put this version of list_of in my own namespace? Or is there a way
to add this to the assign namespace?

template< class T >
inline assign_detail::generic_list<T>
list_of()
{
    return assign_detail::generic_list<T>()();
}

Ryan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net