FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Simple specialization · gouarin/xtensor-python@30faa6e · GitHub

Repository navigation

Commit 30faa6e

Browse files
committed
Simple specialization
1 parent cfb08ae commit 30faa6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/xtensor-python/pytensor.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ namespace xt
107107
{
108108
namespace detail {
109109

110-
template <std::size_t N, typename = void>
110+
template <std::size_t N>
111111
struct numpy_strides
112112
{
113113
npy_intp value[N];
114114
};
115115

116-
template <std::size_t N>
117-
struct numpy_strides<N, typename std::enable_if_t<(N == 0)>::type>
116+
template <>
117+
struct numpy_strides<0>
118118
{
119119
npy_intp* value = nullptr;
120120
};

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL