Opened 11 years ago

Closed 11 years ago

#648 closed defect (fixed)

compiler warnings with gcc 4.4

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.7.1
Component: build Version: 0.7
Keywords: Cc:

Description

I get the following compiler warnings with gcc 4.4 (Fedora):

In file included from ../../yat/utility/Container2DIterator.h:26,
                 from KernelLookup.h:29,
                 from KernelLookup.cc:23:
../../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup>)>’
../../yat/utility/Container2DIterator.h:91:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator(Container&, size_t, size_t) [with Container = const theplu::yat::classifier::KernelLookup, value = const double, reference = const double]’
KernelLookup.cc:108:   instantiated from here
../../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::KernelLookup theplu::yat::utility::Container2D<const theplu::yat::classifier::KernelLookup>::t_’ in class without a constructor
In file included from ../../yat/utility/Container2DIterator.h:26,
                 from MatrixLookup.h:28,
                 from MatrixLookup.cc:25:
../../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>)>’
../../yat/utility/Container2DIterator.h:91:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator(Container&, size_t, size_t) [with Container = const theplu::yat::classifier::MatrixLookup, value = const double, reference = const double&]’
MatrixLookup.cc:153:   instantiated from here
../../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::MatrixLookup theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>::t_’ in class without a constructor
In file included from ../../yat/utility/Container2DIterator.h:26,
                 from MatrixLookupWeighted.h:27,
                 from MatrixLookupWeighted.cc:24:
../../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>)>’
../../yat/utility/Container2DIterator.h:91:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator(Container&, size_t, size_t) [with Container = const theplu::yat::classifier::MatrixLookupWeighted, value = const theplu::yat::utility::DataWeight, reference = const theplu::yat::utility::DataWeight&]’
MatrixLookupWeighted.cc:137:   instantiated from here
../../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::MatrixLookupWeighted theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>::t_’ in class without a constructor
In file included from concept.cc:24:
../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>)>’
../yat/utility/Container2DIterator.h:77:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator() [with Container = const theplu::yat::classifier::MatrixLookup, value = const double, reference = const double&]’
../yat/utility/concept_check.h:188:   instantiated from ‘theplu::yat::utility::TrivialIterator<T>::~TrivialIterator() [with T = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
/usr/include/boost/concept/detail/general.hpp:29:   instantiated from ‘static void boost::concept::requirement<Model>::failed() [with Model = theplu::yat::utility::TrivialIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&> >]’
../yat/utility/concept_check.h:227:   instantiated from ‘theplu::yat::utility::DataIteratorConcept<T>::~DataIteratorConcept() [with T = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
/usr/include/boost/concept/detail/general.hpp:29:   instantiated from ‘static void boost::concept::requirement<Model>::failed() [with Model = theplu::yat::utility::DataIteratorConcept<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&> >]’
concept.cc:60:   instantiated from here
../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::MatrixLookup theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>::t_’ in class without a constructor
../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>)>’
../yat/utility/Container2DIterator.h:77:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator() [with Container = const theplu::yat::classifier::MatrixLookupWeighted, value = const theplu::yat::utility::DataWeight, reference = const theplu::yat::utility::DataWeight&]’
/usr/include/boost/iterator/iterator_adaptor.hpp:279:   instantiated from ‘boost::iterator_adaptor<Derived, Base, Value, Traversal, Reference, Difference>::iterator_adaptor() [with Derived = theplu::yat::utility::StrideIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&> >, Base = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&>, Value = boost::use_default, Traversal = std::random_access_iterator_tag, Reference = boost::use_default, Difference = boost::use_default]’
../yat/utility/StrideIterator.h:67:   instantiated from ‘theplu::yat::utility::StrideIterator<RandomAccessIterator>::StrideIterator(size_t) [with RandomAccessIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&>]’
../yat/utility/concept_check.h:188:   instantiated from ‘theplu::yat::utility::TrivialIterator<T>::~TrivialIterator() [with T = theplu::yat::utility::StrideIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&> >]’
/usr/include/boost/concept/detail/general.hpp:29:   instantiated from ‘static void boost::concept::requirement<Model>::failed() [with Model = theplu::yat::utility::TrivialIterator<theplu::yat::utility::StrideIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&> > >]’
../yat/utility/concept_check.h:227:   instantiated from ‘theplu::yat::utility::DataIteratorConcept<T>::~DataIteratorConcept() [with T = theplu::yat::utility::StrideIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&> >]’
/usr/include/boost/concept/detail/general.hpp:29:   instantiated from ‘static void boost::concept::requirement<Model>::failed() [with Model = theplu::yat::utility::DataIteratorConcept<theplu::yat::utility::StrideIterator<theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookupWeighted, const theplu::yat::utility::DataWeight, const theplu::yat::utility::DataWeight&> > >]’
concept.cc:61:   instantiated from here
../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::MatrixLookupWeighted theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookupWeighted>::t_’ in class without a constructor
In file included from ../yat/utility/Container2DIterator.h:26,
                 from ../yat/classifier/MatrixLookup.h:28,
                 from ../yat/classifier/DataLookup1D.h:28,
                 from iterator.cc:25:
../yat/utility/concept_check.h: In instantiation of ‘theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>’:
/usr/include/boost/concept/detail/has_constraints.hpp:40:   instantiated from ‘const bool boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >::value’
/usr/include/boost/concept/detail/has_constraints.hpp:43:   instantiated from ‘boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >’
/usr/include/boost/mpl/if.hpp:67:   instantiated from ‘boost::mpl::if_<boost::concept::not_satisfied<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::constraint<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> >, boost::concept::requirement<theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup> > >’
/usr/include/boost/concept/detail/general.hpp:19:   instantiated from ‘boost::concept::requirement_<void (*)(theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>)>’
../yat/utility/Container2DIterator.h:77:   instantiated from ‘theplu::yat::utility::Container2DIterator<Container, value, reference>::Container2DIterator() [with Container = const theplu::yat::classifier::MatrixLookup, value = const double, reference = const double&]’
Suite.h:335:   instantiated from ‘void theplu::yat::test::Suite::test_trivial_iterator(const TrivialIterator&) [with TrivialIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
Suite.h:354:   instantiated from ‘void theplu::yat::test::Suite::test_output_iterator(OutputIterator&) [with OutputIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
Suite.h:361:   instantiated from ‘void theplu::yat::test::Suite::test_forward_iterator(ForwardIterator) [with ForwardIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
Suite.h:378:   instantiated from ‘void theplu::yat::test::Suite::test_bidirectional_iterator(BidirectionalIterator) [with BidirectionalIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
Suite.h:402:   instantiated from ‘void theplu::yat::test::Suite::test_random_access_iterator(RandomAccessIterator) [with RandomAccessIterator = theplu::yat::utility::Container2DIterator<const theplu::yat::classifier::MatrixLookup, const double, const double&>]’
iterator.cc:498:   instantiated from here
../yat/utility/concept_check.h:88: warning: non-static const member ‘const theplu::yat::classifier::MatrixLookup theplu::yat::utility::Container2D<const theplu::yat::classifier::MatrixLookup>::t_’ in class without a constructor

Change History (2)

comment:1 Changed 11 years ago by Peter

Milestone: yat 0.x+yat 0.7.1
Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 11 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2403]) avoid compiler warnings. fixes #648

Note: See TracTickets for help on using tickets.