Merge pull request #857 from pps83/master-natvis

Fix debugger visualizer for Ext=gsl::dynamic_extent
This commit is contained in:
Jordan Maples [MSFT]
2020-05-21 11:32:45 -07:00
committed by GitHub
2 changed files with 13 additions and 45 deletions
+7
View File
@@ -348,6 +348,13 @@ namespace details
constexpr explicit extent_type(size_type size) { Expects(size == Ext); }
constexpr size_type size() const noexcept { return Ext; }
private:
#if defined(GSL_USE_STATIC_CONSTEXPR_WORKAROUND)
static constexpr const size_type size_ = Ext; // static size equal to Ext
#else
static constexpr size_type size_ = Ext; // static size equal to Ext
#endif
};
template <>