Boost logo

Boost :

From: Tim Song (t.canens.cpp_at_[hidden])
Date: 2019-11-30 00:06:03


On Wed, Nov 27, 2019 at 11:56 AM Zach Laine via Boost-users <
boost-users_at_[hidden]> wrote:

> This appears quite wrong, even if Augustin is the one behind it. Did he
> say why he expects that to work? It looks like it accepts doubles as
> iterators, for instance.
>
> // Because k-ballo said so
> template<class T>
> using is_input_iterator =
> std::integral_constant<bool, ! std::is_integral<T>::value>;
>

 This is presumably trying to follow [container.requirements.general]p17:

The extent to which an implementation determines that a type cannot be an
> input iterator is unspecified, except that as a minimum integral types
> shall not qualify as input iterators.


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