
On 06/20/08 03:36, Phil Bouchard wrote: [snip]
The Vault version presents the same code except the comment of line 67 & 68 in shifted_ptr_test2.cpp will need to be swapped: http://www.boostpro.com/vault/index.php?action=downloadfile&filename=shifted_ptr.zip&directory=Memory
Hi Phil. I just downloaded the vault and in the docs: libs/smart_ptr/doc/index.html there's: Cons: Requires usage of new_sh<T>() However, I couldn't find new_sh: {--- cut here--- -*- mode: compilation; default-directory: "~/prog_dev/boost-svn/ro/branches-proto-v4/sandbox/shifted_ptr/shifted_ptr/boost/" -*- Compilation started at Fri Jun 20 13:59:33 find . -name \*.h\* -exec grep new {} \; -ls #include <new.h> void * operator new (size_t s) void * operator new (size_t s, set * p) ps_ = new set(); ps_ = new set(); ps_ = new set(); ps_ = new set(); new (ps_) set(); ps_ = new set(); 4181803 8 -rw-r--r-- 1 evansl evansl 7179 Jun 20 01:02 ./shifted_ptr.hpp void * operator new( std::size_t ) void * operator new( std::size_t ) void * operator new( std::size_t ) void * operator new( std::size_t ) 4181800 8 -rw-r--r-- 1 evansl evansl 4987 May 3 13:01 ./detail/sh_owned_impl.h alloc_.reset(new lpp()); constr_.reset(new lpp()); void * operator new (size_t s) 4181799 8 -rw-r--r-- 1 evansl evansl 6665 Jun 19 09:09 ./detail/sh_owned_base_nt.hpp return shifted<T>::operator new(s); ::new (p) T(x); 4181802 4 -rw-r--r-- 1 evansl evansl 2748 Jun 20 00:45 ./shifted_allocator.hpp Compilation finished at Fri Jun 20 13:59:33 }--- cut here --- Where is new_sh defined? -regards, Larry