licq-im / licq

An instant messaging client for UNIX
http://www.licq.org/
16 stars 4 forks source link

Make conversions from boost:shared_ptr to bool explicit #52

Closed ghost closed 2 years ago

ghost commented 7 years ago

Building licq with GCC-6.2.0 fails with errors such as:

licq/src/licq.cpp:553:56: error: cannot convert 'Licq::GeneralPlugin::Ptr {aka boost::shared_ptr<Licq::GeneralPlugin>}' to 'bool' in initialization bool loaded = LoadPlugin(pluginName, argc, argv);

At least with boost-1.61.0, just as std::shared_ptr, boost::shared_ptr defines the bool conversion operator as explicit