/usr/include/bulletml/auto_ptr_fix.h is in libbulletml-dev 0.0.6-6.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /**
*
*/
#ifndef auto_ptr_fix_h_
#define auto_ptr_fix_h_
#include <memory>
template <class T_>
inline void auto_ptr_copy (std::auto_ptr<T_>& lhs, std::auto_ptr<T_> rhs) {
lhs = rhs;
}
template <class T_>
inline void auto_ptr_copy (std::auto_ptr<T_>& lhs, T_* rhs) {
std::auto_ptr<T_> p(rhs);
lhs = p;
}
template <class T_>
inline T_* auto_ptr_release(std::auto_ptr<T_>& p) {
T_* ret = p.release();
auto_ptr_copy(p, std::auto_ptr<T_>());
return ret;
}
#endif // ! auto_ptr_fix_h_
|