1

Is it possible to configure (at compile time) boost::signals2 to use std::shared_ptr instead of boost::shared_ptr, for e.g. in calls like boost::signals2::deconstruct?

I am using boost 1.68

cigien
  • 57,834
  • 11
  • 73
  • 112
zrb
  • 851
  • 7
  • 16
  • Please make sure to include the c++ tag for C++ questions, so that more users will see the question. – cigien Dec 27 '20 at 20:15

1 Answers1

0

Without looking into it, I can guess that the answer will be "no" since changing it would change the interface types, which invites all manner of ODR violations and, thereby, hairy bugs.

However, if you have to bridge the divide, you can sometimes your std::shared_ptr inside a boost::shared_ptr (or vice versa): Cohabitation of boost::shared_ptr and std::shared_ptr

sehe
  • 374,641
  • 47
  • 450
  • 633