Building clean with MSVC12.
This commit is contained in:
1 parent
a0cf1ecc49
commit
8e31f53f8a
5 files changed
+34
-28
No files matched your search
@@ -1594,12 +1594,13 @@ public:
|
||||
// Free functions for manipulating spans
|
||||
//
|
||||
|
||||
|
||||
// reshape a multi_span into a different dimensionality
|
||||
// DimCount and Enabled here are workarounds for a bug in MSVC 2015
|
||||
template <typename SpanType, typename... Dimensions2, size_t DimCount = sizeof...(Dimensions2),
|
||||
bool Enabled = (DimCount > 0), typename = std::enable_if_t<Enabled>>
|
||||
constexpr multi_span<typename SpanType::value_type, Dimensions2::value...>
|
||||
as_multi_span(SpanType s, Dimensions2... dims)
|
||||
bool Enabled = (DimCount > 0), typename = std::enable_if_t<Enabled> >
|
||||
constexpr auto
|
||||
as_multi_span(SpanType s, Dimensions2... dims) -> multi_span<typename SpanType::value_type, Dimensions2::value...>
|
||||
{
|
||||
static_assert(details::is_multi_span<SpanType>::value,
|
||||
"Variadic as_multi_span() is for reshaping existing spans.");
|
||||
|
||||
Reference in new issue
Block a user