mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-19 03:18:09 +08:00
fix: add region where -Wshadow is ignored on GCC 4
This commit is contained in:
@@ -21,6 +21,11 @@ class basic_value;
|
|||||||
using character = char;
|
using character = char;
|
||||||
using key = std::string;
|
using key = std::string;
|
||||||
|
|
||||||
|
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4
|
||||||
|
# pragma GCC diagnostic push
|
||||||
|
# pragma GCC diagnostic ignored "-Wshadow"
|
||||||
|
#endif
|
||||||
|
|
||||||
using boolean = bool;
|
using boolean = bool;
|
||||||
using integer = std::int64_t;
|
using integer = std::int64_t;
|
||||||
using floating = double; // "float" is a keyward, cannot use it here.
|
using floating = double; // "float" is a keyward, cannot use it here.
|
||||||
@@ -32,6 +37,10 @@ using floating = double; // "float" is a keyward, cannot use it here.
|
|||||||
// - local_date
|
// - local_date
|
||||||
// - local_time
|
// - local_time
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
|
# pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
// default toml::value and default array/table. these are defined after defining
|
// default toml::value and default array/table. these are defined after defining
|
||||||
// basic_value itself.
|
// basic_value itself.
|
||||||
// using value = basic_value<discard_comments, std::unordered_map, std::vector>;
|
// using value = basic_value<discard_comments, std::unordered_map, std::vector>;
|
||||||
|
Reference in New Issue
Block a user