
31 Oct
2008
31 Oct
'08
8:06 p.m.
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. } };