diff options
author | ewoudvc <ewoudvc@gmail.com> | 2017-04-25 21:01:49 +0200 |
---|---|---|
committer | Neil MacIntosh <neilmac@microsoft.com> | 2017-04-25 12:01:49 -0700 |
commit | 64c0ca64ce82e87bc64ec6b14c2c43a39f99906b (patch) | |
tree | 691757153028a9c33d7433923ec0ae9d5674e034 | |
parent | ebe7ebfd855a95eb93783164ffb342dbd85cbc27 (diff) | |
download | platform_external_Microsoft-GSL-64c0ca64ce82e87bc64ec6b14c2c43a39f99906b.tar.gz platform_external_Microsoft-GSL-64c0ca64ce82e87bc64ec6b14c2c43a39f99906b.tar.bz2 platform_external_Microsoft-GSL-64c0ca64ce82e87bc64ec6b14c2c43a39f99906b.zip |
make_span for array doesn't pass N as span template parameter (#498)
-rw-r--r-- | include/gsl/span | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gsl/span b/include/gsl/span index 321b496..b344314 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -669,9 +669,9 @@ span<ElementType> make_span(ElementType* firstElem, ElementType* lastElem) } template <class ElementType, std::size_t N> -span<ElementType> make_span(ElementType (&arr)[N]) +span<ElementType, N> make_span(ElementType (&arr)[N]) { - return span<ElementType>(arr); + return span<ElementType, N>(arr); } template <class Container> |