Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-18 08:43:23


#include <boost/function.hpp>

int main()
{
  boost::function<void> f;
}

doesn't compile. Odd because it used to work. Anyway, splitting this
constructor:

    explicit BOOST_FUNCTION_FUNCTION(const Mixin& m = Mixin()) :
      function_base(), Mixin(m) BOOST_FUNCTION_INIT
    {
    }

(function_template.hpp:450)

into two:

    BOOST_FUNCTION_FUNCTION() :
      function_base(), Mixin() BOOST_FUNCTION_INIT
    {
    }

    explicit BOOST_FUNCTION_FUNCTION(const Mixin& m) :
      function_base(), Mixin(m) BOOST_FUNCTION_INIT
    {
    }

fixes the problem.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk