Boost logo

Boost :

From: scleary_at_[hidden]
Date: 2002-01-31 10:39:28

The following simple code fails to compile on Borland 5.5.1 (patch 2):

#include <boost/function.hpp>
#include <boost/bind.hpp>
using boost::function;
using boost::bind;

int main()
  function<void, int> single_arg_func;
  function<void> no_arg_func = bind<void>(single_arg_func, 13);
  return 0;

The error message seems to indicate that BCB doesn't fully support void
returns (it does appear to support it in some contexts, though...)

#define'ing BOOST_NO_VOID_RETURNS allows the use of the workaround evaluator
structures, and this works fine with BCB. So I think this should be added
to the Boost.Config for this compiler.


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