Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:45:02

0001 
0002 #ifndef BOOST_CONTRACT_DETAIL_INLINED_OLD_HPP_
0003 #define BOOST_CONTRACT_DETAIL_INLINED_OLD_HPP_
0004 
0005 // Copyright (C) 2008-2018 Lorenzo Caminiti
0006 // Distributed under the Boost Software License, Version 1.0 (see accompanying
0007 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt).
0008 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html
0009 
0010 // IMPORTANT: Do NOT use config macros BOOST_CONTRACT_... in this file so lib
0011 // .cpp does not need recompiling if config changes (recompile only user code).
0012 
0013 #include <boost/contract/old.hpp>
0014 #include <boost/contract/detail/declspec.hpp>
0015 
0016 namespace boost { namespace contract {
0017 
0018 BOOST_CONTRACT_DETAIL_DECLINLINE
0019 old_value null_old() { return old_value(); }
0020 
0021 BOOST_CONTRACT_DETAIL_DECLINLINE
0022 old_pointer make_old(old_value const& old) {
0023     return old_pointer(0, old);
0024 }
0025 
0026 BOOST_CONTRACT_DETAIL_DECLINLINE
0027 old_pointer make_old(virtual_* v, old_value const& old) {
0028     return old_pointer(v, old);
0029 }
0030 
0031 } } // namespacd
0032 
0033 #endif // #include guard
0034