Subject: [Boost-bugs] [Boost C++ Libraries] #11934: Various warnings in 1.60 MPL when compiling with nvcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-22 09:06:42
#11934: Various warnings in 1.60 MPL when compiling with nvcc
------------------------------------+-----------------------
Reporter: Alex Grund <a.grund@â¦> | Owner: agurtovoy
Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpl
Version: Boost 1.60.0 | Severity: Cosmetic
Keywords: |
------------------------------------+-----------------------
I'm compiling a larger project (
https://github.com/ComputationalRadiationPhysics/picongpu/ current dev)
which uses boost heavily. However a lot of warnings are issued. Since we
are quite agnostic to warnings (compiling with many warnings enabled and
-Werror) this is troubling and it would be great, if those are fixed in
future versions. If I remember correctly older versions (1.58) did not had
them.
CUDA 7.0
{{{
boost/mpl/map/aux_/item.hpp(54): warning:
"boost::mpl::aux::type_wrapper<T> operator/(const boost::mpl::m_item<Key,
T, Base> &, boost::mpl::aux::type_wrapper<Key> *)" declares a non-template
function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(55): warning:
"boost::mpl::aux::type_wrapper<boost::mpl::pair<Key, T>> operator|(const
boost::mpl::m_item<Key, T, Base> &, boost::mpl::next<Base::order>::type
*)" declares a non-template function -- add <> to refer to a template
instance
boost/mpl/map/aux_/item.hpp(56): warning: "char (&operator||(const
boost::mpl::m_item<Key, T, Base> &, boost::mpl::aux::type_wrapper<Key>
*))[boost::mpl::next<Base::order>::type::value]" declares a non-template
function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(71): warning:
"boost::mpl::aux::type_wrapper<mpl_::void_> operator/(const
boost::mpl::m_mask<Key, Base> &, boost::mpl::aux::type_wrapper<Key> *)"
declares a non-template function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(72): warning:
"boost::mpl::aux::type_wrapper<mpl_::void_> operator|(const
boost::mpl::m_mask<Key, Base> &, boost::mpl::x_order_impl<Base, Key>::type
*)" declares a non-template function -- add <> to refer to a template
instance
boost/mpl/map/aux_/item.hpp:54:109: warning: friend declaration
âboost::mpl::aux::type_wrapper<Key> boost::mpl::operator/(const
boost::mpl::m_item<Key, T, Base>&, boost::mpl::aux::type_wrapper<T>*)â
declares a non-template function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<T>, VALUE_BY_KEY,
m_item, aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:54:109: note: (if this is not what you
intended, make sure the function template has already been declared and
add <> after the function name here)
boost/mpl/map/aux_/item.hpp:55:90: warning: friend declaration
âboost::mpl::aux::type_wrapper<boost::mpl::pair<T1, T2> >
boost::mpl::operator|(const boost::mpl::m_item<Key, T, Base>&,
boost::mpl::m_item<Key, T, Base>::order*)â declares a non-template
function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<item>, ITEM_BY_ORDER,
m_item, order* );
^
boost/mpl/map/aux_/item.hpp:56:85: warning: friend declaration âchar (&
boost::mpl::operator||(const boost::mpl::m_item<Key, T, Base>&,
boost::mpl::aux::type_wrapper<T>*))[boost::mpl::m_item<Key, T,
Base>::order:: value]â declares a non-template function [-Wnon-template-
friend]
BOOST_MPL_AUX_MAP_OVERLOAD( order_tag_, ORDER_BY_KEY, m_item,
aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:71:121: warning: friend declaration
âboost::mpl::aux::type_wrapper<mpl_::void_> boost::mpl::operator/(const
boost::mpl::m_mask<Key, Base>&, boost::mpl::aux::type_wrapper<T>*)â
declares a non-template function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<void_>, VALUE_BY_KEY,
m_mask, aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:72:94: warning: friend declaration
âboost::mpl::aux::type_wrapper<mpl_::void_> boost::mpl::operator|(const
boost::mpl::m_mask<Key, Base>&, boost::mpl::m_mask<Key,
Base>::key_order_*)â declares a non-template function [-Wnon-template-
friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<void_>, ITEM_BY_ORDER,
m_mask, key_order_* );
}}}
CUDA 7.5
{{{
boost/mpl/map/aux_/item.hpp(54): warning:
"boost::mpl::aux::type_wrapper<T> operator/(const boost::mpl::m_item<Key,
T, Base> &, boost::mpl::aux::type_wrapper<Key> *)" declares a non-template
function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(55): warning:
"boost::mpl::aux::type_wrapper<boost::mpl::pair<Key, T>> operator|(const
boost::mpl::m_item<Key, T, Base> &, boost::mpl::next<Base::order>::type
*)" declares a non-template function -- add <> to refer to a template
instance
boost/mpl/map/aux_/item.hpp(56): warning: "char (&operator||(const
boost::mpl::m_item<Key, T, Base> &, boost::mpl::aux::type_wrapper<Key>
*))[boost::mpl::next<Base::order>::type::value]" declares a non-template
function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(71): warning:
"boost::mpl::aux::type_wrapper<mpl_::void_> operator/(const
boost::mpl::m_mask<Key, Base> &, boost::mpl::aux::type_wrapper<Key> *)"
declares a non-template function -- add <> to refer to a template instance
boost/mpl/map/aux_/item.hpp(72): warning:
"boost::mpl::aux::type_wrapper<mpl_::void_> operator|(const
boost::mpl::m_mask<Key, Base> &, boost::mpl::x_order_impl<Base, Key>::type
*)" declares a non-template function -- add <> to refer to a template
instance
boost/mpl/map/aux_/item.hpp:54:109: warning: friend declaration
âboost::mpl::aux::type_wrapper<Key> boost::mpl::operator/(const
boost::mpl::m_item<Key, T, Base>&, boost::mpl::aux::type_wrapper<T>*)â
declares a non-template function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<T>, VALUE_BY_KEY,
m_item, aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:54:109: note: (if this is not what you
intended, make sure the function template has already been declared and
add <> after the function name here)
boost/mpl/map/aux_/item.hpp:55:90: warning: friend declaration
âboost::mpl::aux::type_wrapper<boost::mpl::pair<T1, T2> >
boost::mpl::operator|(const boost::mpl::m_item<Key, T, Base>&,
boost::mpl::m_item<Key, T, Base>::order*)â declares a non-template
function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<item>, ITEM_BY_ORDER,
m_item, order* );
^
boost/mpl/map/aux_/item.hpp:56:85: warning: friend declaration âchar (&
boost::mpl::operator||(const boost::mpl::m_item<Key, T, Base>&,
boost::mpl::aux::type_wrapper<T>*))[boost::mpl::m_item<Key, T,
Base>::order:: value]â declares a non-template function [-Wnon-template-
friend]
BOOST_MPL_AUX_MAP_OVERLOAD( order_tag_, ORDER_BY_KEY, m_item,
aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:71:121: warning: friend declaration
âboost::mpl::aux::type_wrapper<mpl_::void_> boost::mpl::operator/(const
boost::mpl::m_mask<Key, Base>&, boost::mpl::aux::type_wrapper<T>*)â
declares a non-template function [-Wnon-template-friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<void_>, VALUE_BY_KEY,
m_mask, aux::type_wrapper<Key>* );
^
boost/mpl/map/aux_/item.hpp:72:94: warning: friend declaration
âboost::mpl::aux::type_wrapper<mpl_::void_> boost::mpl::operator|(const
boost::mpl::m_mask<Key, Base>&, boost::mpl::m_mask<Key,
Base>::key_order_*)â declares a non-template function [-Wnon-template-
friend]
BOOST_MPL_AUX_MAP_OVERLOAD( aux::type_wrapper<void_>, ITEM_BY_ORDER,
m_mask, key_order_* );
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11934> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC