Boost logo

Boost :

From: Me here (rhjrjlbk2002_at_[hidden])
Date: 2005-03-24 09:58:47


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?


--------------- 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[])

  return 0;
--------------- sample code ------------

Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

Boost list run by bdawes at, gregod at, cpdaniel at, john at