Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/interprocess/detail/nothrow.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 ////////////////////////////////////////////////////////////////////////////// |
Chris@102 | 2 // |
Chris@102 | 3 // (C) Copyright Ion Gaztanaga 2014-2015. Distributed under the Boost |
Chris@102 | 4 // Software License, Version 1.0. (See accompanying file |
Chris@102 | 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 6 // |
Chris@102 | 7 // See http://www.boost.org/libs/interprocess for documentation. |
Chris@102 | 8 // |
Chris@102 | 9 ////////////////////////////////////////////////////////////////////////////// |
Chris@102 | 10 #ifndef BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP |
Chris@102 | 11 #define BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP |
Chris@102 | 12 |
Chris@102 | 13 #ifndef BOOST_CONFIG_HPP |
Chris@102 | 14 # include <boost/config.hpp> |
Chris@102 | 15 #endif |
Chris@102 | 16 # |
Chris@102 | 17 #if defined(BOOST_HAS_PRAGMA_ONCE) |
Chris@102 | 18 # pragma once |
Chris@102 | 19 #endif |
Chris@102 | 20 |
Chris@102 | 21 namespace std { //no namespace versioning in clang+libc++ |
Chris@102 | 22 |
Chris@102 | 23 struct nothrow_t; |
Chris@102 | 24 |
Chris@102 | 25 } //namespace std { |
Chris@102 | 26 |
Chris@102 | 27 namespace boost{ namespace interprocess { |
Chris@102 | 28 |
Chris@102 | 29 template <int Dummy = 0> |
Chris@102 | 30 struct nothrow |
Chris@102 | 31 { |
Chris@102 | 32 static const std::nothrow_t &get() { return *pnothrow; } |
Chris@102 | 33 static std::nothrow_t *pnothrow; |
Chris@102 | 34 }; |
Chris@102 | 35 |
Chris@102 | 36 template <int Dummy> |
Chris@102 | 37 std::nothrow_t *nothrow<Dummy>::pnothrow; |
Chris@102 | 38 |
Chris@102 | 39 }} //namespace boost{ namespace interprocess { |
Chris@102 | 40 |
Chris@102 | 41 #endif //#ifndef BOOST_INTERPROCESS_DETAIL_NOTHROW_HPP |