-----Original Message----- From: Hicham Mouline [mailto:hicham@mouline.org] Sent: 05 July 2009 15:36 To: Hicham Mouline Subject: FW: [Boost-users] detect if a type has a size_t member
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of joel Sent: 03 July 2009 19:04 To: boost-users@lists.boost.org Subject: Re: [Boost-users] detect if a type has a size_t member
Hicham Mouline wrote:
Can I put the macro inside the struct S ? I guess not. I'd write: HAS_STATIC_MEMBER_NAMED(T, value)
which would return a integral bool or a bool type it works liek BOOST_MPL_HAS_XXXX so put it where you want to define a boolean meta-function. It supports ::value and ::type return mpl boolean. I'm sorry I can quite get how to use it. I have this:
#include <iostream>
#include