diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:22:55 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-15 02:47:11 +0300 |
commit | 87145426f111ac0044f243082fcbbbb9e219c255 (patch) | |
tree | 3dba24a6fcd277d554c823cdb99f44cb6e68929a | |
parent | mingw builds: fix boost::program_options::validate overloads (diff) | |
download | winapi-debug-87145426f111ac0044f243082fcbbbb9e219c255.tar.gz winapi-debug-87145426f111ac0044f243082fcbbbb9e219c255.zip |
mingw builds: external definitions for static members
-rw-r--r-- | utils/enum_symbols.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/enum_symbols.cpp b/utils/enum_symbols.cpp index bd8a82b..dad5300 100644 --- a/utils/enum_symbols.cpp +++ b/utils/enum_symbols.cpp @@ -40,12 +40,15 @@ public: pdb::Symbol::Type get_type() const { return static_cast<pdb::Symbol::Type>(tag); } private: - static const auto reserved_tag = static_cast<pdb::symbol::Tag>(pdb::Symbol::Type::RESERVED); - static const auto function_tag = static_cast<pdb::symbol::Tag>(pdb::Symbol::Type::Function); + static constexpr auto reserved_tag = static_cast<pdb::symbol::Tag>(pdb::Symbol::Type::RESERVED); + static constexpr auto function_tag = static_cast<pdb::symbol::Tag>(pdb::Symbol::Type::Function); pdb::symbol::Tag tag = reserved_tag; }; +constexpr pdb::symbol::Tag EnumSymbols::reserved_tag; +constexpr pdb::symbol::Tag EnumSymbols::function_tag; + } // namespace int main(int argc, char* argv[]) { |