|
||||
File indexing completed on 2025-01-18 09:53:19
0001 /* Copyright 2023 Joaquin M Lopez Munoz. 0002 * Distributed under the Boost Software License, Version 1.0. 0003 * (See accompanying file LICENSE_1_0.txt or copy at 0004 * http://www.boost.org/LICENSE_1_0.txt) 0005 * 0006 * See https://www.boost.org/libs/unordered for library home page. 0007 */ 0008 0009 #include <boost/config.hpp> 0010 0011 #if defined(BOOST_GCC) 0012 #if !defined(BOOST_UNORDERED_DETAIL_RESTORE_WSHADOW) 0013 /* GCC's -Wshadow triggers at scenarios like this: 0014 * 0015 * struct foo{}; 0016 * template<typename Base> 0017 * struct derived:Base 0018 * { 0019 * void f(){int foo;} 0020 * }; 0021 * 0022 * derived<foo>x; 0023 * x.f(); // declaration of "foo" in derived::f shadows base type "foo" 0024 * 0025 * This makes shadowing warnings unavoidable in general when a class template 0026 * derives from user-provided classes, as is the case with foa::table_core 0027 * deriving from empty_value. 0028 */ 0029 0030 #pragma GCC diagnostic push 0031 #pragma GCC diagnostic ignored "-Wshadow" 0032 #else 0033 #pragma GCC diagnostic pop 0034 #endif 0035 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |