1*84d9c625SLionel Sambuc // Copyright 2013 Google Inc. 2*84d9c625SLionel Sambuc // All rights reserved. 3*84d9c625SLionel Sambuc // 4*84d9c625SLionel Sambuc // Redistribution and use in source and binary forms, with or without 5*84d9c625SLionel Sambuc // modification, are permitted provided that the following conditions are 6*84d9c625SLionel Sambuc // met: 7*84d9c625SLionel Sambuc // 8*84d9c625SLionel Sambuc // * Redistributions of source code must retain the above copyright 9*84d9c625SLionel Sambuc // notice, this list of conditions and the following disclaimer. 10*84d9c625SLionel Sambuc // * Redistributions in binary form must reproduce the above copyright 11*84d9c625SLionel Sambuc // notice, this list of conditions and the following disclaimer in the 12*84d9c625SLionel Sambuc // documentation and/or other materials provided with the distribution. 13*84d9c625SLionel Sambuc // * Neither the name of Google Inc. nor the names of its contributors 14*84d9c625SLionel Sambuc // may be used to endorse or promote products derived from this software 15*84d9c625SLionel Sambuc // without specific prior written permission. 16*84d9c625SLionel Sambuc // 17*84d9c625SLionel Sambuc // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18*84d9c625SLionel Sambuc // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19*84d9c625SLionel Sambuc // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20*84d9c625SLionel Sambuc // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21*84d9c625SLionel Sambuc // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22*84d9c625SLionel Sambuc // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23*84d9c625SLionel Sambuc // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24*84d9c625SLionel Sambuc // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25*84d9c625SLionel Sambuc // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26*84d9c625SLionel Sambuc // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27*84d9c625SLionel Sambuc // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28*84d9c625SLionel Sambuc 29*84d9c625SLionel Sambuc /// \file utils/shard_ptr.hpp 30*84d9c625SLionel Sambuc /// Compatibility header to import std::shared_ptr. 31*84d9c625SLionel Sambuc 32*84d9c625SLionel Sambuc #if !defined(UTILS_SHARED_PTR_HPP) 33*84d9c625SLionel Sambuc #define UTILS_SHARED_PTR_HPP 34*84d9c625SLionel Sambuc 35*84d9c625SLionel Sambuc #include <ciso646> 36*84d9c625SLionel Sambuc 37*84d9c625SLionel Sambuc #if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L 38*84d9c625SLionel Sambuc # include <memory> 39*84d9c625SLionel Sambuc #else 40*84d9c625SLionel Sambuc # include <tr1/memory> 41*84d9c625SLionel Sambuc namespace std { 42*84d9c625SLionel Sambuc using tr1::shared_ptr; 43*84d9c625SLionel Sambuc } 44*84d9c625SLionel Sambuc #endif 45*84d9c625SLionel Sambuc 46*84d9c625SLionel Sambuc #endif // !defined(UTILS_SHARED_PTR_HPP) 47