Changeset 2613 for hydranode/hnbase/unchain_ptr.h
- Timestamp:
- 01/31/06 04:28:47 (3 years ago)
- Files:
-
- hydranode/hnbase/unchain_ptr.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hnbase/unchain_ptr.h
r2551 r2613 1 /* Copyright 2005 Alo Sarv1 /* Copyright 2005-2006 Alo Sarv 2 2 * Distributed under the Boost Software Licence, Version 1.0 3 3 * (See accompanying file LICENCE_1_0.txt or copy at … … 21 21 // non-const overloads 22 22 Class& operator()(Class &x) const { return x; } 23 23 24 24 template<typename ChainedPtr> 25 25 Class& operator()(ChainedPtr &x) const { 26 26 return operator()(*x); 27 27 } 28 28 29 29 Class& operator()(boost::reference_wrapper<Class> &x) const { 30 30 return operator()(x.get()); … … 36 36 // const overloads 37 37 const Class& operator()(const Class &x) const { return x; } 38 38 39 39 template<typename ChainedPtr> 40 40 const Class& operator()(const ChainedPtr &x) const {
