01be812580
* Fix compiler failures showing up on regression test matrix due to void return type. * Fix gcc-3.4 failures showing up regression test matrix due to binding string literals to non-const references to char const*. * Update tutorial documentation to match literate tests.
28 lines
424 B
C++
28 lines
424 B
C++
|
|
#include <boost/parameter.hpp>
|
|
#include <iostream>
|
|
|
|
using namespace boost::parameter;
|
|
|
|
BOOST_PARAMETER_NAME(arg1)
|
|
|
|
struct somebody
|
|
{
|
|
BOOST_PARAMETER_MEMBER_FUNCTION(
|
|
(void), static f, tag, (optional (arg1,(int),0))
|
|
)
|
|
{
|
|
std::cout << arg1 << std::endl;
|
|
}
|
|
};
|
|
|
|
#include <boost/core/lightweight_test.hpp>
|
|
|
|
int main()
|
|
{
|
|
somebody::f();
|
|
somebody::f(4);
|
|
return boost::report_errors();
|
|
}
|
|
|