Boost logo

Boost :

Subject: [boost] [type-traits] virtual function type trait check
From: Chris (indy271828_at_[hidden])
Date: 2008-10-31 16:06:24


I was wondering if it were possible to make a is_virtual_function type
trait check.

Example:

class B
{
public:
    virtual void complicatedFunction() { }
};

class D : public B
{
public:
    void complicatedFnction()
{
    static_assert(**check if D::complicatedFnction() is virtual **); //
notice the misspelling.
}

};


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