Boost logo

Boost Users :

Subject: Re: [Boost-users] [ConceptCheck] Same type concept
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2014-08-24 19:05:00


Thanks Edward.... at risk of looking even more foolish, I've looked
at that, and other traits, but think I'm missing something obvious in
expressing a type trait as a concept!

- Rob.

On 24 August 2014 23:44, Edward Diener <eldiener_at_[hidden]> wrote:

> On 8/24/2014 6:08 PM, Robert Jones wrote:
>
>> I'd like a concept check to check for two types being the same type.
>>
>> I can see how to write such a concept, but this is such an obvious
>> requirement
>> that either there should be one already, or there's some blindingly
>> obvious reason
>> why you never need one, a reason that escapes me.
>>
>> A little guidance would be appreciated.
>>
>
> Look at boost::is_same in the type traits library. Also modern C++11 has
> std::is_same.
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
ACCU - Professionalism in programming - http://www.accu.org


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