Gennadiy Rozental wrote:
> > > 2. Could type that implements swap() method somehow follow the second
> case
> > > road also? For example, could you somehow deduce T* from buffer and
swap
> > it
> > > with local copy of the argument?
> >
> > Yes, I can look into such optimizations. But as I noted in
Gennadiy Rozental wrote:
> 1. There is "theoretical" limits for the size of MPL sequences. See MPL
docs
> (BOOST_MPL_LIMIT_LIST_SIZE for list)
> 2. You could limit variant support only for lists that does not exceed
your
> own limit BOOST_VARIANT_LIMIT_TYPES.
Not true. There is absolutely no limit
> typedef boost::variant GlobalParameter;
> GlobalParameter input_socket(12345);
> input_socket = "test"; // no way to prevent this
>
> // ...or if that doesn't convince you...
> GlobalParameter new_input_socket("test");
> input_socket = new_input_socket; // no way to prevent this eithe
Gennadiy Rozental wrote:
> > I argue that top-level const type arguments are meaningless in the
context
> > of variant. Given the example you provide:
> >
> > typedef boost::variant GlobalParameter;
> >
> > GlobalParameter input_socket(12345);
> > input_socket = 54321; // no way to prevent th
Neal D. Becker wrote:
My purpose was only to demonstrate a generic class to do stats for both
scalar and complex types. I don't know if I have time or will-power to
turn it into a real boost submission.
I hope you don't mind, but I have taken your statistics class and vamped it
up. I have made
The line reads:
#if (_MSC_VER <= 1300) // 1200 == VC++ 7.0
I assume the comment should read
// 1300 == VC++ 7.0
^
Reece H Dunn
-rhd-
mailto:[EMAIL PROTECTED]
_
Surf together with new Shared Browsing
http://join.msn.com/?page
Dear Boosters,
Mario Rueti, a student in my group, needed and wrote the following
function objects which seem to be missing in the standard library (only
arithmetic and logical operations seem to be defined as function
objects). Since these might be of more general interest we wonder if
they m
> I try to link executable with boost and STLPORT library to no effect.
> I use g++ for Linux and CC for Sun solaris.
>
> Do you have any workaround to the folowing errors ?
> undefined reference to `boost::reg_expression boost::regex_traits, _STL::allocator
> >::reg_expression(_STL::allocator con