Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-06-07 17:28:56


----- Original Message -----
From: "Jeremy Siek" <jsiek_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, June 07, 2001 5:58 PM
Subject: Re: [boost] concept checking: BOOST_CLASS_REQUIRES

>
> Here's another variation that I had considered previously, and am now
> considering again. The only problem with this one is that if the user
> forgets the "::type" then the check doesn't do anything.

can't you do something like this to solve that problem?

template <class Concept>
struct class_requires : class_requires_impl<Concept>::type {};

-Dave


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