From beaf4e3e3fdadfe710c143299a611ada30b7b547 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 3 Jun 2018 09:43:02 -0400 Subject: Fixed compilation failures with MSVC 2015. Thanks to Neil. --- src/PositionCache.h | 4 ++-- src/Style.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/PositionCache.h b/src/PositionCache.h index bc70b7f4e..8aaead094 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -145,8 +145,8 @@ public: PositionCacheEntry(); // Copy constructor not currently used, but needed for being element in std::vector. PositionCacheEntry(const PositionCacheEntry &); - // Deleted so PositionCacheEntry objects can not be assigned. - PositionCacheEntry(PositionCacheEntry &&) = delete; + // PositionCacheEntry objects should not be moved but MSVC 2015 requires this. + PositionCacheEntry(PositionCacheEntry &&) = default; void operator=(const PositionCacheEntry &) = delete; void operator=(PositionCacheEntry &&) = delete; ~PositionCacheEntry(); diff --git a/src/Style.h b/src/Style.h index 81b399806..7a497b36b 100644 --- a/src/Style.h +++ b/src/Style.h @@ -72,7 +72,7 @@ public: Style(); Style(const Style &source); - Style(Style &&) = delete; + Style(Style &&) = default; ~Style(); Style &operator=(const Style &source); Style &operator=(Style &&) = delete; -- cgit v1.2.3