Boost.Parameter BOOST_PARAMETER_MEMBER_FUNCTION warning
Hi, When using the BOOST_PARAMETER_MEMBER_FUNCTION as shown in the code below I get a compiler warning "unused parameter args" (see also below). Because the way my IDE works (Eclipse 3.6 with CDT 7.0), this warning is expanded to a lot of errors. Is it possible to get ride of the warning? Am I using the macro OK (it works but I don't know if that is just a coincidence;-))? TIA The code:
BOOST_PARAMETER_MEMBER_FUNCTION((UserCreator::UserCreationArguments*), static newCreationArguments, UserCreator::tag, (optional (objectId, ( const ObjectId&), ObjectId()) (userId, ( const int&), 0) (userName, ( const std::string&), std::string()) (password, ( const std::string&), std::string()) (firstName, ( const std::string&), std::string()) (infix, ( const std::string&), std::string()) (lastName, ( const std::string&), std::string()) )) { return new UserCreator::UserCreationArguments( objectId, userId, userName, password, firstName, infix, lastName); }
The warning:
/home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp: In instantiation of ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&, lastName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string
, password_type = const std::basic_string , firstName_type = const std::basic_string , infix_type = const std::basic_string , lastName_type = const std::basic_string ]’: /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string , firstName_type = const std::basic_string , infix_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, infix_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string , firstName_type = const std::basic_string , infix_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string , firstName_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&, firstName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string , firstName_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, password_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&, password_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string , password_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, userId_type&, userName_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&, userName_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int, userName_type = const std::basic_string ]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, userId_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&, userId_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId, userId_type = const int]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, objectId_type&, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int, objectId_type&) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list, objectId_type = const Danu::ObjectId]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, long int, boost::parameter::aux::use_default_tag) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static ResultType Danu::User::boost_param_default_105newCreationArguments(ResultType (*)(), const Args&, int) [with ResultType = Danu::UserCreator::UserCreationArguments*, Args = boost::parameter::aux::empty_arg_list]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from ‘static typename Danu::User::boost_param_result_105newCreationArguments<Args>::type Danu::User::boost_param_implnewCreationArguments(const Args&) [with Args = boost::parameter::aux::empty_arg_list]’ /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: instantiated from here /home/jkr/Programming/C++/Danu/include/Danu/DanuModelObjects/User.hpp:94: warning: unused parameter ‘args’
-- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
participants (1)
-
Joost Kraaijeveld