
5 Nov
2011
5 Nov
'11
2:53 a.m.
From: Lorenzo Caminiti
The following example raises the same Boost.Parameter error and it uses no graph library:
// File: 01.cpp #include <boost/parameter.hpp> #include <iostream> BOOST_PARAMETER_NAME(x) BOOST_PARAMETER_NAME(y) BOOST_PARAMETER_FUNCTION( (void), f, tag, (required (x, *) (y, (tag::x::_)) ) ) { std::cout << x << " " << y << std::endl; } int main ( void ) { f(1, 2); return 0; } Reply: IME you can't use (void) as a return type. As a workaround I use (bool) and return a constant (true or false). HTH, Cromwell D. Enage