Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:58:19

0001 ///////////////////////////////////////////////////////////////////////////////
0002 /// \file ignore_unused.hpp
0003 /// Definintion of ignore_unused, a dummy function for suppressing compiler
0004 /// warnings
0005 //
0006 //  Copyright 2008 Eric Niebler. Distributed under the Boost
0007 //  Software License, Version 1.0. (See accompanying file
0008 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 
0010 #ifndef BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
0011 #define BOOST_PROTO_DETAIL_IGNORE_UNUSED_HPP_EAN_03_03_2008
0012 
0013 #include <boost/config.hpp>
0014 
0015 #if defined(_MSC_VER)
0016 # pragma warning(push)
0017 # pragma warning(disable : 4714) // function 'xxx' marked as __forceinline not inlined
0018 #endif
0019 
0020 namespace boost { namespace proto
0021 {
0022     namespace detail
0023     {
0024         template<typename T>
0025         BOOST_FORCEINLINE void ignore_unused(T const &)
0026         {}
0027     }
0028 }}
0029 
0030 #if defined(_MSC_VER)
0031 # pragma warning(pop)
0032 #endif
0033 
0034 #endif