From 87145426f111ac0044f243082fcbbbb9e219c255 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 15 Jan 2020 02:22:55 +0300 Subject: mingw builds: external definitions for static members --- utils/enum_symbols.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils') 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(tag); } private: - static const auto reserved_tag = static_cast(pdb::Symbol::Type::RESERVED); - static const auto function_tag = static_cast(pdb::Symbol::Type::Function); + static constexpr auto reserved_tag = static_cast(pdb::Symbol::Type::RESERVED); + static constexpr auto function_tag = static_cast(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[]) { -- cgit v1.2.3