DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

testOutputIteratorAdapter issue #501

Closed dcoeurjo closed 11 years ago

dcoeurjo commented 11 years ago

Scanning dependencies of target testProgressBar In file included from /Users/davidcoeurjolly/Sources/DGtal/tests/base/testOutputIteratorAdapter.cpp:37: In file included from /Users/davidcoeurjolly/Sources/DGtal/src/DGtal/base/OutputIteratorAdapter.h:45: /Users/davidcoeurjolly/Sources/DGtal/src/DGtal/base/CUnaryFunctor.h:102:10: warning: struct 'CUnaryFunctorDGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>' does not declare any constructor to initialize its non-modifiable members struct CUnaryFunctor : boost::Assignable ^ /usr/local/include/boost/concept/detail/has_constraints.hpp:32:63: note: in instantiation of template class 'DGtal::CUnaryFunctorDGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>' requested here ...wrap_constraints<Model,&[ 17%] Model::constraints>* = 0); ^ /usr/local/include/boost/concept/detail/has_constraints.hpp:32:14: note: while substituting deduced template arguments into function template 'hasconstraints' [with Model = DGtal::CUnaryFunctorDGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>] inline yes hasconstraints(Model*, ... ^ /usr/local/include/boost/mpl/if.hpp:63:68: note: in instantiation of template class 'boost::concepts::not_satisfiedDGtal::CUnaryFunctor<DGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>>' requested here ...BOOST_MPL_AUX_VALUEWKND(T1)::value) ^ /usr/local/include/boost/mpl/aux/value_wknd.hpp:57:40: note: expanded from macro 'BOOST_MPL_AUX_VALUE_WKND'

define BBuilding CXX object tests/base/CMakeFiles/testProgressBar.dir/testProgressBar.cpp.o

OOST_MPL_AUX_VALUEWKND(C) C ^ /usr/local/include/boost/mpl/aux/static_cast.hpp:24:62: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST' ...BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast(expr) ^ /usr/local/include/boost/concept/detail/general.hpp:51:10: note: in instantiation of template class 'boost::mpl::if_boost::concepts::not_satisfied<DGtal::CUnaryFunctor<DGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>>, boost::concepts::constraintDGtal::CUnaryFunctor<DGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>>, boost::concepts::requirement<boost::concepts::failed ****DGtal::CUnaryFunctor<DGtal::Pair2ndMutator<std::basic_string>, std::pair<const std::basic_string, std::basic_string> &, std::basicstring &>::***>>' requested here : mpl::if< ^ /Users/davidcoeurjolly/Sources/DGtal/src/DGtal/base/OutputIteratorAdapter.h:83:5: note: in instantiation of template class 'boost::concepts::requirement<void (_)(DGtal::CUnaryFunctorDGtal::Pair2ndMutator<std::basic_string, std::pair<const std::basic_string, std::basic_string> &, std::basic_string &>)>' requested here BOOST_CONCEPT_ASSERT(( CUnaryFunctor<TFunctor, ^ /usr/local/include/boost/concept/assert.hpp:44:5: note: expanded from macro 'BOOST_CONCEPT_ASSERT' BOOST_CONCEPT_ASSERT_FN(void()ModelInParens) ^ /usr/local/include/boost/concept/detail/general.hpp:70:25: note: expanded from macro 'BOOST_CONCEPT_ASSERTFN' &::boost::concepts::requirement::failed> \ Linking CXX executable testOwningOrAliasingPtr ^ /usr/local/include/boost/concept_check.hpp:155:8: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) TT a; ^ /usr/local/include/boost/concept/detail/has_constraints.hpp:32:63: note: in instantiation of template class 'boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>' requested here ...wrap_constraints<Model,&Model::constraints>* = 0); ^ /usr/local/include/boost/concept/detail/has_constraints.hpp:32:14: note: while substituting deduced template arguments into function template 'hasconstraints' [with Model = boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>] inline yes hasconstraints(Model, ... ^ /usr/local/include/boost/mpl/if.hpp:63:68: note: in instantiation of template class 'boost::concepts::not_satisfied<boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>>' requested here ...BOOST_MPL_AUX_VALUEWKND(T1)::value) ^ /usr/local/include/boost/mpl/aux/value_wknd.hpp:57:40: note: expanded from macro 'BOOST_MPL_AUX_VALUE_WKND'

define BOOST_MPL_AUX_VALUE_WKND(C) C

                                   ^

/usr/local/include/boost/mpl/aux_/static_cast.hpp:24:62: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST' ...BOOST[ 17%] _MPL_AUX_STATIC_CAST(T, expr) staticcast(expr) ^ /usr/local/include/boost/concept/detail/general.hpp:51:10: note: in instantiation of template class 'boost::mpl::if<boost::concepts::not_satisfied<boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>>, boost::concepts::constraint<boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>>, boost::concepts::requirement<boost::concepts::failed ****boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string<cBuilt target testOwningOrAliasingPtr har>, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basicstring>::***>>' requested here : mpl::if< ^ /Users/davidcoeurjolly/Sources/DGtal/tests/base/testOutputIteratorAdapter.cpp:83:3: note: in instantiation of template class 'boost::concepts::requirement<void (_)(boost::OutputIterator<DGtal::OutputIteratorAdapter<std::_Rb_tree_iterator<std::pair<const std::basic_string, std::basic_string>>, DGtal::Pair2ndMutatorstd::basic_string, std::basic_string>, std::basic_string>)>' requested here BOOST_CONCEPT_ASSERT(( ... ^ /usr/local/include/boost/concept/assert.hpp:44:5: note: expanded from macro 'BOOST_CONCEPT_ASSERT' BOOST_CONCEPT_ASSERT_FN(void(*)ModelInParens) ^ /usr/local/include/boost/concept/detail/general.hpp:70:25: note: expanded from macro 'BOOST_CONCEPT_ASSERTFN' Scanning dependencies of target testStatistics &::boost::concepts::requirement::failed> \ ^ /Users/davidcoeurjolly/Sources/DGtal/src/DGtal/base/CUnaryFunctor.h:115:7: note: reference member 'a' will never be initialized A a; ^ /Users/davidcoeurjolly/Sources/DGtal/src/DGtal/base/CUnaryFunctor.h:116:7: note: reference member 'r' will never be initialized R r; ^ [ 17%] Building CXX obj

troussil commented 11 years ago

duplicated #388