Boost logo

Boost :

Subject: Re: [boost] Move notes
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-09-07 16:14:07


David Abrahams escribió:
> Hi Ion,
>
> A few things I noticed looking through move.hpp in the sandbox
>
> 1. you static_cast in one direction but reinterpret_cast in the other.
> Why?

A bug was reported for SunPro with static_cast producing an infinite loop:

http://lists.boost.org/Archives/boost/2009/02/149069.php

> 2. I think move_iterator's operator-> return type is wrong; maybe make
> the pointer type be the underlying iterator type instead?

I'll try it.

> 3. I think its operator[] can be wrong for some iterators. See
> http://www.boost.org/doc/libs/1_40_0/libs/iterator/doc/iterator_facade.html#operator

Ok, I'm quite lost to find a proper solution, what do you suggest?

> 4. bool-valued traits should be derived from an MPL integral constant,
> e.g.
>
> template <class T>
> struct is_whatever : mpl::bool_< (some compile-time expression ) > {};

Ok,

Best,

Ion


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