Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/interprocess/detail/nothrow.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/interprocess for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 #ifndef BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP
0011 #define BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP
0012 
0013 #ifndef BOOST_CONFIG_HPP
0014 #  include <boost/config.hpp>
0015 #endif
0016 #
0017 #if defined(BOOST_HAS_PRAGMA_ONCE)
0018 #  pragma once
0019 #endif
0020 
0021 namespace std {   //no namespace versioning in clang+libc++
0022 
0023 struct nothrow_t;
0024 
0025 }  //namespace std {
0026 
0027 namespace boost{ namespace interprocess {
0028 
0029 template <int Dummy = 0>
0030 struct nothrow
0031 {
0032    static const std::nothrow_t &get()   {  return *pnothrow;  }
0033    static std::nothrow_t *pnothrow;
0034 };
0035 
0036 template <int Dummy>
0037 std::nothrow_t *nothrow<Dummy>::pnothrow =
0038    reinterpret_cast<std::nothrow_t *>(0x1234);  //Avoid sanitizer warnings on references to null
0039 
0040 }}  //namespace boost{ namespace interprocess {
0041 
0042 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP