/usr/include/vxl/vcl/vcl_new.h is in libvxl1-dev 1.17.0.dfsg2-4.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #ifndef vcl_new_h_
#define vcl_new_h_
/*
fsm
*/
#include "vcl_compiler.h"
// -------------------- emulation
#if !VCL_USE_NATIVE_STL
# include "emulation/vcl_new.h"
// -------------------- old SGI CC
#elif defined(VCL_SGI_CC_720)
# include <new.h>
// -------------------- gcc with old library
#elif defined(VCL_GCC) && !defined(GNU_LIBSTDCXX_V3)
# include <new.h>
// -------------------- old MSVC
#elif defined(VCL_VC_60)
# include <new.h>
// -------------------- iso
#else
# include <new>
#endif
// Provide vcl_destroy() and vcl_construct() :
#if VCL_USE_NATIVE_STL
template <class T>
inline
void vcl_destroy(T *p) { p->~T(); }
template <class U, class V>
inline
void vcl_construct(U * p, V const & value) { new (p) U(value); }
#endif
#define vcl_bad_alloc std::bad_alloc
#ifdef VCL_VC_60
// Provide dummy set new handler
// It should be possible to get set_new_handler to work eith VC6 -
// but I don't have a working VC6 to test/debug it - IMS
typedef void (__cdecl *new_handler)();
inline new_handler __cdecl vcl_set_new_handler(new_handler) {return 0;}
#else
# define vcl_set_new_handler std::set_new_handler
#endif
#endif // vcl_new_h_
|