Compile errors under linux with gcc version 4.6.3

Jan 9, 2014 at 10:38 AM
lot of errors:

In file included from /usr/include/boost/iterator/interoperable.hpp:13:0,
             from /usr/include/boost/iterator/iterator_facade.hpp:11,
             from /home/ji/pstsdk_0_3_0/pstsdk/util/btree.h:21,
             from /home/ji/pstsdk_0_3_0/pstsdk/ndb/database.h:14,
             from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:8:
/usr/include/boost/type_traits/is_convertible.hpp: In instantiation of ‘const bool boost::detail::is_convertible_basic_impl<pstsdk::attachment_transform&, pstsdk::attachment_transform>::value’:
/usr/include/boost/type_traits/is_convertible.hpp:295:5: instantiated from ‘const bool boost::detail::is_convertible_impl<pstsdk::attachment_transform, pstsdk::attachment_transform>::value’
/usr/include/boost/type_traits/is_convertible.hpp:418:1: instantiated from ‘boost::is_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>’
/usr/include/boost/iterator/detail/enable_if.hpp:68:12: instantiated from ‘boost::iterators::enable_if<boost::is_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>, boost::detail::enable_type>’
/usr/include/boost/iterator/iterator_adaptor.hpp:149:10: instantiated from ‘boost::enable_if_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>’
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:246:119: instantiated from here
/usr/include/boost/type_traits/is_convertible.hpp:136:49: error: cannot bind ‘pstsdk::attachment_transform’ lvalue to ‘pstsdk::attachment_transform&&’
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:135:5: error: initializing argument 1 of ‘pstsdk::attachment_transform::attachment_transform(pstsdk::attachment_transform&&)’
/usr/include/boost/type_traits/is_convertible.hpp:128:41: error: initializing argument 1 of ‘static boost::type_traits::yes_type boost::detail::checker<T>::_m_check(T, int) [with T = pstsdk::attachment_transform, boost::type_traits::yes_type = char]’
In file included from /usr/include/boost/iterator/iterator_facade.hpp:15:0,
             from /home/ji/pstsdk_0_3_0/pstsdk/util/btree.h:21,
             from /home/ji/pstsdk_0_3_0/pstsdk/ndb/database.h:14,
             from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:8:
/usr/include/boost/iterator/detail/enable_if.hpp: In instantiation of ‘boost::iterators::enable_if<boost::is_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>, boost::detail::enable_type>’:
/usr/include/boost/iterator/iterator_adaptor.hpp:149:10: instantiated from ‘boost::enable_if_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>’
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:246:119: instantiated from here
/usr/include/boost/iterator/detail/enable_if.hpp:68:12: error: ‘value’ is not a member of ‘boost::is_convertible<pstsdk::attachment_transform, pstsdk::attachment_transform>’
In file included from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:12:0:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h: In member function ‘pstsdk::message::attachment_iterator pstsdk::message::attachment_begin() const’:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:246:119: error: use of deleted function ‘boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>::transform_iterator(const boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&)’
In file included from /home/ji/pstsdk_0_3_0/pstsdk/ndb/node.h:16:0,
             from /home/ji/pstsdk_0_3_0/pstsdk/ndb/database.h:21,
             from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:8:
/usr/include/boost/iterator/transform_iterator.hpp:89:9: error: ‘boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>::transform_iterator(const boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&)’ is implicitly deleted because the default definition would be ill-formed:
/usr/include/boost/iterator/transform_iterator.hpp:89:9: error: no matching function for call to ‘pstsdk::attachment_transform::attachment_transform(const pstsdk::attachment_transform&)’
/usr/include/boost/iterator/transform_iterator.hpp:89:9: note: candidates are:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:135:5: note: pstsdk::attachment_transform::attachment_transform(pstsdk::attachment_transform&&)
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:135:5: note: no known conversion for argument 1 from ‘const pstsdk::attachment_transform’ to ‘pstsdk::attachment_transform&&’
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:130:14: note: pstsdk::attachment_transform::attachment_transform(const pstsdk::node&)
In file included from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:12:0:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h: In member function ‘pstsdk::message::attachment_iterator pstsdk::message::attachment_end() const’:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:250:117: error: use of deleted function ‘boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>::transform_iterator(const boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&)’
/home/ji/pstsdk_0_3_0/test/pstlevel.cpp: In function ‘void process_message(const pstsdk::message&)’:
/home/ji/pstsdk_0_3_0/test/pstlevel.cpp:58:78: error: use of deleted function ‘boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>::transform_iterator(const boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&)’
/usr/include/c++/4.6/bits/stl_algo.h:4373:5: error: initializing argument 1 of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, _Funct = void (*)(const pstsdk::attachment&)]’
/home/ji/pstsdk_0_3_0/test/pstlevel.cpp:58:78: error: use of deleted function ‘boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>::transform_iterator(const boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&)’
/usr/include/c++/4.6/bits/stl_algo.h:4373:5: error: initializing argument 2 of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, _Funct = void (*)(const pstsdk::attachment&)]’
In file included from /home/ji/pstsdk_0_3_0/pstsdk/ndb/node.h:16:0,
             from /home/ji/pstsdk_0_3_0/pstsdk/ndb/database.h:21,
             from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:8:
/usr/include/boost/iterator/transform_iterator.hpp: In function ‘boost::transform_iterator<UnaryFunc, Iterator> boost::make_transform_iterator(Iterator, UnaryFunc) [with UnaryFunc = pstsdk::attachment_transform, Iterator = pstsdk::const_table_row_iter]’:
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:246:119: instantiated from here
/usr/include/boost/iterator/transform_iterator.hpp:147:61: error: cannot bind ‘pstsdk::attachment_transform’ lvalue to ‘pstsdk::attachment_transform&&’
/home/ji/pstsdk_0_3_0/pstsdk/pst/message.h:135:5: error: initializing argument 1 of ‘pstsdk::attachment_transform::attachment_transform(pstsdk::attachment_transform&&)’
/usr/include/boost/iterator/transform_iterator.hpp:101:5: error: initializing argument 2 of ‘boost::transform_iterator<UnaryFunction, Iterator, Reference, Value>::transform_iterator(const Iterator&, UnaryFunc) [with UnaryFunc = pstsdk::attachment_transform, Iterator = pstsdk::const_table_row_iter, Reference = boost::use_default, Value = boost::use_default]’
In file included from /usr/include/boost/iterator/interoperable.hpp:13:0,
             from /usr/include/boost/iterator/iterator_facade.hpp:11,
             from /home/ji/pstsdk_0_3_0/pstsdk/util/btree.h:21,
             from /home/ji/pstsdk_0_3_0/pstsdk/ndb/database.h:14,
             from /home/ji/pstsdk_0_3_0/test/pstlevel.cpp:8:
/usr/include/boost/type_traits/is_convertible.hpp: At global scope:
/usr/include/boost/type_traits/is_convertible.hpp: In instantiation of ‘const bool boost::detail::is_convertible_basic_impl<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>&, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> >::value’:
/usr/include/boost/type_traits/is_convertible.hpp:295:5: instantiated from ‘const bool boost::detail::is_convertible_impl<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> >::value’
/usr/include/boost/type_traits/is_convertible.hpp:418:1: instantiated from ‘boost::is_convertible<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> >’
/usr/include/boost/mpl/aux_/nested_type_wknd.hpp:26:31: instantiated from ‘boost::mpl::aux::nested_type_wknd<boost::is_convertible<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> > >’
/usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp:48:8: instantiated from ‘boost::mpl::or_<boost::is_convertible<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> >, boost::is_convertible<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter> >, mpl_::bool_<false>, mpl_::bool_<false>, mpl_::bool_<false> >’
/usr/include/boost/iterator/detail/enable_if.hpp:68:12: instantiated from ‘boost::iterators::enable_if<boost::mpl::or_<boost::is_convertible<boost::transform_iterator<pstsdk::attachment_transform, pstsdk::const_table_row_iter>, boost::transform_iterator<pstsdk::attachment_transform, pst