|
Boost : |
From: Me here (rhjrjlbk2002_at_[hidden])
Date: 2005-03-24 09:58:47
Hello,
The code below does not compile, when, I believe, it
should. Compiler says that you can't instantiate
abstact class.
I'm really surprised - it is trivial use case, but I
did not find a problem report. Do I miss something?
Regards,
Alexander
--------------- sample code ------------
#include <boost/static_assert.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits.hpp>
struct Data
{
virtual foo() =0;
};
int main(int argc, char* argv[])
{
BOOST_STATIC_ASSERT((boost::is_convertible<Data,Data>::value));
return 0;
}
--------------- sample code ------------
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk