Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / proto / detail / ignore_unused.hpp
blob7ca344636ac8ae42dda7a6444b1475c59fdf4b21
1 ///////////////////////////////////////////////////////////////////////////////
2 /// \file ignore_unused.hpp
3 /// Definintion of ignore_unused, a dummy function for suppressing compiler
4 /// warnings
5 //
6 // Copyright 2008 Eric Niebler. Distributed under the Boost
7 // Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
11 #define BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
13 #include <boost/config.hpp>
15 #if defined(_MSC_VER)
16 # pragma warning(push)
17 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
18 #endif
20 namespace boost { namespace proto
22 namespace detail
24 template<typename T>
25 BOOST_FORCEINLINE void ignore_unused(T const &)
30 #if defined(_MSC_VER)
31 # pragma warning(pop)
32 #endif
34 #endif