Skip to content

Commit

Permalink
remove experimental/memory work-around
Browse files Browse the repository at this point in the history
This was an attempt to handle pre-C++-17, but it would need
work for make_shared.  In any case, it isn't available on VS2020 etc
apparently.
  • Loading branch information
KrisThielemans committed Feb 16, 2024
1 parent 11af03f commit ba6691b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/include/stir/shared_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,10 @@ using boost::static_pointer_cast;
# define MAKE_SHARED boost::make_shared
} // namespace stir
#else
# if __cplusplus < 201703L
# include <experimental/memory>
namespace stir
{
using std::experimental::shared_ptr;
}
# else
# include <memory>

namespace stir
{
using std::shared_ptr;
}
# endif
namespace stir
{
using std::dynamic_pointer_cast;
using std::static_pointer_cast;
//! work-around for using std::make_shared on old compilers
Expand Down

0 comments on commit ba6691b

Please sign in to comment.