Skip to content

Instantly share code, notes, and snippets.

@mvgrimes
Created June 17, 2015 15:49
Show Gist options
  • Save mvgrimes/085a3e5269f8e2cda2ca to your computer and use it in GitHub Desktop.
Save mvgrimes/085a3e5269f8e2cda2ca to your computer and use it in GitHub Desktop.
ledger apple gcc failure: ./acprep opt make
acprep: INFO: Invoking primary phase: make
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Darwin
acprep: INFO: Setting up build flavor => opt
Scanning dependencies of target libledger
[ 1%] Building CXX object src/CMakeFiles/libledger.dir/stats.cc.o
In file included from /Users/mgrimes/pkg/ledger/ledger/src/stats.cc:34:
In file included from /Users/mgrimes/pkg/ledger/ledger/src/draft.h:45:
In file included from /Users/mgrimes/pkg/ledger/ledger/src/exprbase.h:58:
In file included from /Users/mgrimes/pkg/ledger/ledger/src/amount.h:57:
/Users/mgrimes/pkg/ledger/ledger/src/times.h:572:18: warning: comparison between NULL and non-pointer ('const optional<date_t>' and NULL) [-Wnull-arithmetic]
return start != NULL;
~~~~~ ^ ~~~~
/Users/mgrimes/pkg/ledger/ledger/src/times.h:572:18: error: invalid operands to binary expression ('const optional<date_t>' and 'long')
return start != NULL;
~~~~~ ^ ~~~~
/opt/local/include/boost/function/function_base.hpp:744:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::function_base' for 1st argument
inline bool operator!=(const function_base& f,
^
/opt/local/include/boost/function/function_base.hpp:827:3: note: candidate function [with Functor = boost::optional<boost::gregorian::date>] not viable: no known conversion from 'long' to 'const boost::function_base' for 2nd argument
operator!=(Functor g, const function_base& f)
^
/opt/local/include/boost/optional/optional.hpp:1382:6: note: candidate function [with T = boost::gregorian::date] not viable: no known conversion from 'long' to 'boost::none_t' for 2nd argument
bool operator != ( optional<T> const& x, none_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/function/function_base.hpp:756:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'detail::function::useless_clear_type *' for 1st argument
inline bool operator!=(detail::function::useless_clear_type*,
^
/opt/local/include/boost/operators.hpp:152:18: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::gregorian::date' for 1st argument
friend bool operator!=(const T& x, const T& y) { return !static_cast<bool>(x == y); }
^
/opt/local/include/boost/blank.hpp:73:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::blank' for 1st argument
inline bool operator!=(const blank&, const blank&)
^
/opt/local/include/boost/optional/optional.hpp:1313:6: note: candidate template ignored: deduced conflicting types for parameter 'T' ('boost::gregorian::date' vs. 'long')
bool operator != ( optional<T> const& x, T const& y )
^
/opt/local/include/boost/range/iterator_range_core.hpp:594:9: note: candidate template ignored: could not match 'iterator_range<type-parameter-0-0>' against 'long'
operator!=( const ForwardRange& l, const iterator_range<IteratorT>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:661:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<Iterator1T>& l, const iterator_range<Iterator2T>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:671:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<IteratorT>& l, const ForwardRange& r )
^
/opt/local/include/boost/function/function_base.hpp:855:3: note: candidate template ignored: could not match 'reference_wrapper<type-parameter-0-0>' against 'long'
operator!=(const function_base& f, reference_wrapper<Functor> g)
^
/opt/local/include/boost/function/function_base.hpp:864:3: note: candidate template ignored: could not match 'reference_wrapper' against 'optional'
operator!=(reference_wrapper<Functor> g, const function_base& f)
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function0' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function1' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function2' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function3' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function4' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function5' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function6' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function7' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function8' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function9' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function10' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:733:40: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:761:31: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T> inline bool operator!=( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:766:31: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/array.hpp:350:10: note: candidate template ignored: could not match 'array' against 'optional'
bool operator!= (const array<T,N>& x, const array<T,N>& y) {
^
/opt/local/include/boost/function/function_base.hpp:818:3: note: candidate template ignored: substitution failure [with Functor = long]: no type named 'type' in 'boost::enable_if_c<false, bool>'
operator!=(const function_base& f, Functor g)
^
/opt/local/include/boost/optional/optional.hpp:1279:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( optional<T> const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1347:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( T const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1416:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( none_t, optional<T> const& y ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:198:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:208:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:218:40: note: candidate template ignored: could not match 'T *' against 'optional<date_t>'
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:246:31: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T> inline bool operator!=( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:251:31: note: candidate template ignored: could not match 'intrusive_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:113:31: note: candidate template ignored: could not match 'scoped_array' against 'optional'
template<class T> inline bool operator!=( scoped_array<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:118:31: note: candidate template ignored: could not match 'scoped_array<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_array<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/ptr_container/detail/void_ptr_iterator.hpp:185:21: note: candidate template ignored: could not match 'void_ptr_iterator' against 'optional'
inline bool operator!=( const void_ptr_iterator<VoidIterT,T>& l,
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:131:31: note: candidate template ignored: could not match 'scoped_ptr' against 'optional'
template<class T> inline bool operator!=( scoped_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:136:31: note: candidate template ignored: could not match 'scoped_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/regex/v4/sub_match.hpp:197:13: note: candidate template ignored: could not match 'basic_string' against 'optional'
inline bool operator != (const std::basic_string<typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type, traits, Allocator>& s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:222:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:247:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:272:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const* s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:298:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:323:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const& s,
^
In file included from /Users/mgrimes/pkg/ledger/ledger/src/stats.cc:35:
In file included from /Users/mgrimes/pkg/ledger/ledger/src/xact.h:45:
/Users/mgrimes/pkg/ledger/ledger/src/item.h:195:18: warning: comparison between NULL and non-pointer ('const optional<date_t>' and NULL) [-Wnull-arithmetic]
return _date != NULL;
~~~~~ ^ ~~~~
/Users/mgrimes/pkg/ledger/ledger/src/item.h:195:18: error: invalid operands to binary expression ('const optional<date_t>' and 'long')
return _date != NULL;
~~~~~ ^ ~~~~
/opt/local/include/boost/function/function_base.hpp:744:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::function_base' for 1st argument
inline bool operator!=(const function_base& f,
^
/opt/local/include/boost/function/function_base.hpp:827:3: note: candidate function [with Functor = boost::optional<boost::gregorian::date>] not viable: no known conversion from 'long' to 'const boost::function_base' for 2nd argument
operator!=(Functor g, const function_base& f)
^
/opt/local/include/boost/optional/optional.hpp:1382:6: note: candidate function [with T = boost::gregorian::date] not viable: no known conversion from 'long' to 'boost::none_t' for 2nd argument
bool operator != ( optional<T> const& x, none_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/function/function_base.hpp:756:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'detail::function::useless_clear_type *' for 1st argument
inline bool operator!=(detail::function::useless_clear_type*,
^
/opt/local/include/boost/operators.hpp:152:18: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::gregorian::date' for 1st argument
friend bool operator!=(const T& x, const T& y) { return !static_cast<bool>(x == y); }
^
/opt/local/include/boost/blank.hpp:73:13: note: candidate function not viable: no known conversion from 'const optional<date_t>' to 'const boost::blank' for 1st argument
inline bool operator!=(const blank&, const blank&)
^
/opt/local/include/boost/optional/optional.hpp:1313:6: note: candidate template ignored: deduced conflicting types for parameter 'T' ('boost::gregorian::date' vs. 'long')
bool operator != ( optional<T> const& x, T const& y )
^
/opt/local/include/boost/range/iterator_range_core.hpp:594:9: note: candidate template ignored: could not match 'iterator_range<type-parameter-0-0>' against 'long'
operator!=( const ForwardRange& l, const iterator_range<IteratorT>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:661:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<Iterator1T>& l, const iterator_range<Iterator2T>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:671:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<IteratorT>& l, const ForwardRange& r )
^
/opt/local/include/boost/function/function_base.hpp:855:3: note: candidate template ignored: could not match 'reference_wrapper<type-parameter-0-0>' against 'long'
operator!=(const function_base& f, reference_wrapper<Functor> g)
^
/opt/local/include/boost/function/function_base.hpp:864:3: note: candidate template ignored: could not match 'reference_wrapper' against 'optional'
operator!=(reference_wrapper<Functor> g, const function_base& f)
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function0' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function1' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function2' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function3' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function4' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function5' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function6' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function7' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function8' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function9' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function10' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:733:40: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:761:31: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T> inline bool operator!=( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:766:31: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/array.hpp:350:10: note: candidate template ignored: could not match 'array' against 'optional'
bool operator!= (const array<T,N>& x, const array<T,N>& y) {
^
/opt/local/include/boost/function/function_base.hpp:818:3: note: candidate template ignored: substitution failure [with Functor = long]: no type named 'type' in 'boost::enable_if_c<false, bool>'
operator!=(const function_base& f, Functor g)
^
/opt/local/include/boost/optional/optional.hpp:1279:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( optional<T> const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1347:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( T const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1416:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( none_t, optional<T> const& y ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:198:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:208:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:218:40: note: candidate template ignored: could not match 'T *' against 'optional<date_t>'
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:246:31: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T> inline bool operator!=( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:251:31: note: candidate template ignored: could not match 'intrusive_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:113:31: note: candidate template ignored: could not match 'scoped_array' against 'optional'
template<class T> inline bool operator!=( scoped_array<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:118:31: note: candidate template ignored: could not match 'scoped_array<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_array<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/ptr_container/detail/void_ptr_iterator.hpp:185:21: note: candidate template ignored: could not match 'void_ptr_iterator' against 'optional'
inline bool operator!=( const void_ptr_iterator<VoidIterT,T>& l,
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:131:31: note: candidate template ignored: could not match 'scoped_ptr' against 'optional'
template<class T> inline bool operator!=( scoped_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:136:31: note: candidate template ignored: could not match 'scoped_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/regex/v4/sub_match.hpp:197:13: note: candidate template ignored: could not match 'basic_string' against 'optional'
inline bool operator != (const std::basic_string<typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type, traits, Allocator>& s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:222:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:247:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:272:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const* s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:298:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:323:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const& s,
^
In file included from /Users/mgrimes/pkg/ledger/ledger/src/stats.cc:36:
/Users/mgrimes/pkg/ledger/ledger/src/post.h:209:19: warning: comparison between NULL and non-pointer ('optional<ledger::post_t::xdata_t>' and NULL) [-Wnull-arithmetic]
return xdata_ != NULL;
~~~~~~ ^ ~~~~
/Users/mgrimes/pkg/ledger/ledger/src/post.h:209:19: error: invalid operands to binary expression ('optional<ledger::post_t::xdata_t>' and 'long')
return xdata_ != NULL;
~~~~~~ ^ ~~~~
/opt/local/include/boost/function/function_base.hpp:744:13: note: candidate function not viable: no known conversion from 'optional<ledger::post_t::xdata_t>' to 'const boost::function_base' for 1st argument
inline bool operator!=(const function_base& f,
^
/opt/local/include/boost/function/function_base.hpp:827:3: note: candidate function [with Functor = boost::optional<ledger::post_t::xdata_t>] not viable: no known conversion from 'long' to 'const boost::function_base' for 2nd argument
operator!=(Functor g, const function_base& f)
^
/opt/local/include/boost/optional/optional.hpp:1382:6: note: candidate function [with T = ledger::post_t::xdata_t] not viable: no known conversion from 'long' to 'boost::none_t' for 2nd argument
bool operator != ( optional<T> const& x, none_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/function/function_base.hpp:756:13: note: candidate function not viable: no known conversion from 'optional<ledger::post_t::xdata_t>' to 'detail::function::useless_clear_type *' for 1st argument
inline bool operator!=(detail::function::useless_clear_type*,
^
/opt/local/include/boost/blank.hpp:73:13: note: candidate function not viable: no known conversion from 'optional<ledger::post_t::xdata_t>' to 'const boost::blank' for 1st argument
inline bool operator!=(const blank&, const blank&)
^
/opt/local/include/boost/optional/optional.hpp:1313:6: note: candidate template ignored: deduced conflicting types for parameter 'T' ('ledger::post_t::xdata_t' vs. 'long')
bool operator != ( optional<T> const& x, T const& y )
^
/opt/local/include/boost/function/function_base.hpp:818:3: note: candidate template ignored: substitution failure [with Functor = long]: no type named 'type' in 'boost::enable_if_c<false, bool>'
operator!=(const function_base& f, Functor g)
^
/opt/local/include/boost/range/iterator_range_core.hpp:594:9: note: candidate template ignored: could not match 'iterator_range<type-parameter-0-0>' against 'long'
operator!=( const ForwardRange& l, const iterator_range<IteratorT>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:661:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<Iterator1T>& l, const iterator_range<Iterator2T>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:671:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<IteratorT>& l, const ForwardRange& r )
^
/opt/local/include/boost/function/function_base.hpp:855:3: note: candidate template ignored: could not match 'reference_wrapper<type-parameter-0-0>' against 'long'
operator!=(const function_base& f, reference_wrapper<Functor> g)
^
/opt/local/include/boost/function/function_base.hpp:864:3: note: candidate template ignored: could not match 'reference_wrapper' against 'optional'
operator!=(reference_wrapper<Functor> g, const function_base& f)
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function0' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function1' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function2' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function3' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function4' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function5' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function6' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function7' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function8' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function9' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function10' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:733:40: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:761:31: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T> inline bool operator!=( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:766:31: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/array.hpp:350:10: note: candidate template ignored: could not match 'array' against 'optional'
bool operator!= (const array<T,N>& x, const array<T,N>& y) {
^
/opt/local/include/boost/optional/optional.hpp:1279:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( optional<T> const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1347:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( T const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1416:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( none_t, optional<T> const& y ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:198:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:208:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:218:40: note: candidate template ignored: could not match 'T *' against 'optional<ledger::post_t::xdata_t>'
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:246:31: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T> inline bool operator!=( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:251:31: note: candidate template ignored: could not match 'intrusive_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:113:31: note: candidate template ignored: could not match 'scoped_array' against 'optional'
template<class T> inline bool operator!=( scoped_array<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:118:31: note: candidate template ignored: could not match 'scoped_array<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_array<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/ptr_container/detail/void_ptr_iterator.hpp:185:21: note: candidate template ignored: could not match 'void_ptr_iterator' against 'optional'
inline bool operator!=( const void_ptr_iterator<VoidIterT,T>& l,
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:131:31: note: candidate template ignored: could not match 'scoped_ptr' against 'optional'
template<class T> inline bool operator!=( scoped_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:136:31: note: candidate template ignored: could not match 'scoped_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/regex/v4/sub_match.hpp:197:13: note: candidate template ignored: could not match 'basic_string' against 'optional'
inline bool operator != (const std::basic_string<typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type, traits, Allocator>& s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:222:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:247:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:272:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const* s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:298:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:323:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const& s,
^
In file included from /Users/mgrimes/pkg/ledger/ledger/src/stats.cc:37:
/Users/mgrimes/pkg/ledger/ledger/src/account.h:265:19: warning: comparison between NULL and non-pointer ('optional<ledger::account_t::xdata_t>' and NULL) [-Wnull-arithmetic]
return xdata_ != NULL;
~~~~~~ ^ ~~~~
/Users/mgrimes/pkg/ledger/ledger/src/account.h:265:19: error: invalid operands to binary expression ('optional<ledger::account_t::xdata_t>' and 'long')
return xdata_ != NULL;
~~~~~~ ^ ~~~~
/opt/local/include/boost/function/function_base.hpp:744:13: note: candidate function not viable: no known conversion from 'optional<ledger::account_t::xdata_t>' to 'const boost::function_base' for 1st argument
inline bool operator!=(const function_base& f,
^
/opt/local/include/boost/function/function_base.hpp:827:3: note: candidate function [with Functor = boost::optional<ledger::account_t::xdata_t>] not viable: no known conversion from 'long' to 'const boost::function_base' for 2nd argument
operator!=(Functor g, const function_base& f)
^
/opt/local/include/boost/optional/optional.hpp:1382:6: note: candidate function [with T = ledger::account_t::xdata_t] not viable: no known conversion from 'long' to 'boost::none_t' for 2nd argument
bool operator != ( optional<T> const& x, none_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/function/function_base.hpp:756:13: note: candidate function not viable: no known conversion from 'optional<ledger::account_t::xdata_t>' to 'detail::function::useless_clear_type *' for 1st argument
inline bool operator!=(detail::function::useless_clear_type*,
^
/opt/local/include/boost/blank.hpp:73:13: note: candidate function not viable: no known conversion from 'optional<ledger::account_t::xdata_t>' to 'const boost::blank' for 1st argument
inline bool operator!=(const blank&, const blank&)
^
/opt/local/include/boost/optional/optional.hpp:1313:6: note: candidate template ignored: deduced conflicting types for parameter 'T' ('ledger::account_t::xdata_t' vs. 'long')
bool operator != ( optional<T> const& x, T const& y )
^
/opt/local/include/boost/function/function_base.hpp:818:3: note: candidate template ignored: substitution failure [with Functor = long]: no type named 'type' in 'boost::enable_if_c<false, bool>'
operator!=(const function_base& f, Functor g)
^
/opt/local/include/boost/range/iterator_range_core.hpp:594:9: note: candidate template ignored: could not match 'iterator_range<type-parameter-0-0>' against 'long'
operator!=( const ForwardRange& l, const iterator_range<IteratorT>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:661:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<Iterator1T>& l, const iterator_range<Iterator2T>& r )
^
/opt/local/include/boost/range/iterator_range_core.hpp:671:9: note: candidate template ignored: could not match 'iterator_range' against 'optional'
operator!=( const iterator_range<IteratorT>& l, const ForwardRange& r )
^
/opt/local/include/boost/function/function_base.hpp:855:3: note: candidate template ignored: could not match 'reference_wrapper<type-parameter-0-0>' against 'long'
operator!=(const function_base& f, reference_wrapper<Functor> g)
^
/opt/local/include/boost/function/function_base.hpp:864:3: note: candidate template ignored: could not match 'reference_wrapper' against 'optional'
operator!=(reference_wrapper<Functor> g, const function_base& f)
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function0' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function1' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function2' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function3' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function4' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function5' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function6' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function7' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function8' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function9' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/function/function_template.hpp:1039:8: note: candidate template ignored: could not match 'function10' against 'optional'
void operator!=(const BOOST_FUNCTION_FUNCTION<
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:733:40: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:761:31: note: candidate template ignored: could not match 'shared_ptr' against 'optional'
template<class T> inline bool operator!=( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/shared_ptr.hpp:766:31: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/array.hpp:350:10: note: candidate template ignored: could not match 'array' against 'optional'
bool operator!= (const array<T,N>& x, const array<T,N>& y) {
^
/opt/local/include/boost/optional/optional.hpp:1279:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( optional<T> const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1347:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( T const& x, optional<T> const& y )
^
/opt/local/include/boost/optional/optional.hpp:1416:6: note: candidate template ignored: could not match 'optional<type-parameter-0-0>' against 'long'
bool operator != ( none_t, optional<T> const& y ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:198:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:208:40: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:218:40: note: candidate template ignored: could not match 'T *' against 'optional<ledger::account_t::xdata_t>'
template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b)
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:246:31: note: candidate template ignored: could not match 'intrusive_ptr' against 'optional'
template<class T> inline bool operator!=( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/intrusive_ptr.hpp:251:31: note: candidate template ignored: could not match 'intrusive_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:113:31: note: candidate template ignored: could not match 'scoped_array' against 'optional'
template<class T> inline bool operator!=( scoped_array<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_array.hpp:118:31: note: candidate template ignored: could not match 'scoped_array<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_array<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/ptr_container/detail/void_ptr_iterator.hpp:185:21: note: candidate template ignored: could not match 'void_ptr_iterator' against 'optional'
inline bool operator!=( const void_ptr_iterator<VoidIterT,T>& l,
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:131:31: note: candidate template ignored: could not match 'scoped_ptr' against 'optional'
template<class T> inline bool operator!=( scoped_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT
^
/opt/local/include/boost/smart_ptr/scoped_ptr.hpp:136:31: note: candidate template ignored: could not match 'scoped_ptr<type-parameter-0-0>' against 'long'
template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, scoped_ptr<T> const & p ) BOOST_NOEXCEPT
^
/opt/local/include/boost/regex/v4/sub_match.hpp:197:13: note: candidate template ignored: could not match 'basic_string' against 'optional'
inline bool operator != (const std::basic_string<typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type, traits, Allocator>& s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:222:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:247:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:272:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const* s,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:298:13: note: candidate template ignored: could not match 'sub_match' against 'optional'
inline bool operator != (const sub_match<RandomAccessIterator>& m,
^
/opt/local/include/boost/regex/v4/sub_match.hpp:323:13: note: candidate template ignored: could not match 'sub_match<type-parameter-0-0>' against 'long'
inline bool operator != (typename re_detail::regex_iterator_traits<RandomAccessIterator>::value_type const& s,
^
4 warnings and 4 errors generated.
make[2]: *** [src/CMakeFiles/libledger.dir/stats.cc.o] Error 1
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
make: *** [all] Error 2
acprep: ERROR: Execution failed: make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment