Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/proto/detail/ignore_unused.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 | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /////////////////////////////////////////////////////////////////////////////// |
Chris@16 | 2 /// \file ignore_unused.hpp |
Chris@16 | 3 /// Definintion of ignore_unused, a dummy function for suppressing compiler |
Chris@16 | 4 /// warnings |
Chris@16 | 5 // |
Chris@16 | 6 // Copyright 2008 Eric Niebler. Distributed under the Boost |
Chris@16 | 7 // Software License, Version 1.0. (See accompanying file |
Chris@16 | 8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 9 |
Chris@16 | 10 #ifndef BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008 |
Chris@16 | 11 #define BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008 |
Chris@16 | 12 |
Chris@16 | 13 #include <boost/config.hpp> |
Chris@16 | 14 |
Chris@101 | 15 #if defined(_MSC_VER) |
Chris@16 | 16 # pragma warning(push) |
Chris@16 | 17 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined |
Chris@16 | 18 #endif |
Chris@16 | 19 |
Chris@16 | 20 namespace boost { namespace proto |
Chris@16 | 21 { |
Chris@16 | 22 namespace detail |
Chris@16 | 23 { |
Chris@16 | 24 template<typename T> |
Chris@16 | 25 BOOST_FORCEINLINE void ignore_unused(T const &) |
Chris@16 | 26 {} |
Chris@16 | 27 } |
Chris@16 | 28 }} |
Chris@16 | 29 |
Chris@101 | 30 #if defined(_MSC_VER) |
Chris@16 | 31 # pragma warning(pop) |
Chris@16 | 32 #endif |
Chris@16 | 33 |
Chris@16 | 34 #endif |