|
Boost Users : |
Subject: [Boost-users] Boost.Parameter BOOST_PARAMETER_MEMBER_FUNCTION warning
From: Joost Kraaijeveld (J.Kraaijeveld_at_[hidden])
Date: 2010-06-26 07:42:59
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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, lastName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â:
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, infix_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, firstName_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >, password_type = const std::basic_string<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >]â
> /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<char, std::char_traits<char>, std::allocator<char> >]â
> /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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net