From 64319e75ee70b29028eeef57a3cf25f5ab212588 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Wed, 1 Jun 2016 13:40:42 +0300 Subject: [PATCH] Fix compile on linux --- generator/booking_dataset.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/booking_dataset.hpp b/generator/booking_dataset.hpp index 7d5c48cd59..f8db7f6e09 100644 --- a/generator/booking_dataset.hpp +++ b/generator/booking_dataset.hpp @@ -52,8 +52,8 @@ public: string descUrl; uint32_t type = 0; - constexpr size_t Index(Fields field) const { return static_cast(field); } - constexpr size_t FieldsCount() const { return static_cast(Fields::Counter); } + static constexpr size_t Index(Fields field) { return static_cast(field); } + static constexpr size_t FieldsCount() { return static_cast(Fields::Counter); } explicit Hotel(string const & src); };