[Boost-bugs] [Boost C++ Libraries] #10842: Boost.Parameter: Class Template can't be abstract

Subject: [Boost-bugs] [Boost C++ Libraries] #10842: Boost.Parameter: Class Template can't be abstract
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-03 08:52:38


#10842: Boost.Parameter: Class Template can't be abstract
------------------------------+-----------------------
 Reporter: o0o0@… | Owner: danielw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: parameter
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 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;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10842>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC