Opened 8 years ago

Last modified 8 years ago

#10842 new Bugs

Boost.Parameter: Class Template parameter can't be abstract

Reported by: o0o0@… Owned by: Daniel Wallin
Milestone: To Be Determined Component: parameter
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

VS 2013 fails to compile when abstract class is passed as class template parameter with error "cannot instantiate abstract class". Sample:

#include <boost/parameter.hpp>

class Intf { public:

virtual void func() = 0;

};

BOOST_PARAMETER_TEMPLATE_KEYWORD(param)

template<class Arg> class P { public:

typedef typename boost::parameter::parameters<

boost::parameter::optional<tag::param>

::bind<Arg>::type args;

typedef typename boost::parameter::value_type<args, tag::param, void>::type param_type;

};

int main() {

P<param<Intf> > p;

return 0;

}

Change History (1)

comment:1 by anonymous, 8 years ago

Summary: Boost.Parameter: Class Template can't be abstractBoost.Parameter: Class Template parameter can't be abstract
Note: See TracTickets for help on using tickets.