C++ error when attempting to use boost libraries with C++11

Solution Verified - Updated -

Issue

  • When trying to use the boost libraries with C++ 11, we get the following error:
`/usr/include/boost/date_time/local_time/custom_time_zone.hpp:67:30: error: cannot convert ‘const boost::shared_ptr<boost::date_time::dst_day_calc_rule<boost::gregorian::date> >’ to ‘bool’ in return`

Environment

  • Red Hat Enterprise Linux 7
  • boost-1.53.0-27.el7 or earlier package

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content