21#ifndef _libint2_src_bin_libint_smartptr_h_
22#define _libint2_src_bin_libint_smartptr_h_
24#include <libint2/config.h>
26#if HAVE_SHARED_PTR_IN_BOOST
27 #include <boost/shared_ptr.hpp>
28 #include <boost/enable_shared_from_this.hpp>
32 #define SafePtr boost::shared_ptr
33 #define EnableSafePtrFromThis boost::enable_shared_from_this
34 #define SafePtr_from_this shared_from_this
35 using boost::const_pointer_cast;
36 using boost::dynamic_pointer_cast;
37 using boost::static_pointer_cast;
42 #define SafePtr std::shared_ptr
43 #define EnableSafePtrFromThis std::enable_shared_from_this
44 #define SafePtr_from_this shared_from_this
45 using std::const_pointer_cast;
46 using std::dynamic_pointer_cast;
47 using std::static_pointer_cast;
55 enum { result =
false };
60 enum { result =
true };
64 enum { result =
true };
68 enum { result =
true };
72 enum { result =
true };
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:24
Can be used to determine whether a type is a SafePtr.
Definition: smart_ptr.h:54