Compare commits

...

2 Commits

Author SHA1 Message Date
Dmitry Kobets 4c6f7b2923 Mark dynamic_extent as inline, compiler-version-permitting 2022-07-01 10:23:21 -07:00
Dmitry Kobets be0a8a2caa Test solution 2022-07-01 10:23:11 -07:00
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ namespace gsl
{
// [span.views.constants], constants
constexpr const std::size_t dynamic_extent = narrow_cast<std::size_t>(-1);
GSL_INLINE constexpr const std::size_t dynamic_extent = narrow_cast<std::size_t>(-1);
template <class ElementType, std::size_t Extent = dynamic_extent>
class span;
+6
View File
@@ -45,6 +45,12 @@
#define GSL_NODISCARD
#endif // defined(__cplusplus) && (__cplusplus >= 201703L)
#if defined(__cpp_inline_variables)
#define GSL_INLINE inline
#else
#define GSL_INLINE
#endif
namespace gsl
{
//