Boost logo

Boost :

Subject: Re: [boost] Yap's formal review is starting now!
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-02-15 23:01:31


AMDG

On 02/15/2018 03:58 PM, Peter Dimov via Boost wrote:
>
> I just tried and Hana doesn't like any of the standard TupleLikes, not
> even std::tuple. This strikes me as odd, given that everything is
> generic and properly conceptified. Am I doing something wrong?
>

Did you #include <boost/hana/ext/std/tuple.hpp>?

>    std::tuple<int> v1;
>    std::cout << boost::hana::length( v1 ) << std::endl;
>
> \boost-git\develop/boost/hana/length.hpp:32:9: error: static_assert failed
>      "hana::length(xs) requires 'xs' to be Foldable"
>        static_assert(hana::Foldable<S>::value,
>        ^             ~~~~~~~~~~~~~~~~~~~~~~~~
>

In Christ,
Steven Watanabe


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