From e3f509d5daf43a5da89f35a2b2e0f5c14b153879 Mon Sep 17 00:00:00 2001 From: Martin Moene Date: Tue, 1 May 2018 16:00:13 +0200 Subject: [PATCH] Fix closing parenthesis in disabled line of as_bytes() (issue #3, thanks to @chris0e3) also in as_writeable_bytes() --- include/nonstd/span.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nonstd/span.hpp b/include/nonstd/span.hpp index 555c685..f2cf0d4 100644 --- a/include/nonstd/span.hpp +++ b/include/nonstd/span.hpp @@ -907,7 +907,7 @@ inline span< const std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (t as_bytes( span spn ) span_noexcept { #if 0 - return { reinterpret_cast< std::byte const * >( spn.data(), spn.size_bytes() ) }; + return { reinterpret_cast< std::byte const * >( spn.data() ), spn.size_bytes() }; #else return span< const std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (to_size(sizeof(T)) * Extent) ) >( reinterpret_cast< std::byte const * >( spn.data() ), spn.size_bytes() ); // NOLINT @@ -919,7 +919,7 @@ inline span< std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (to_size as_writeable_bytes( span spn ) span_noexcept { #if 0 - return { reinterpret_cast< std::byte * >( spn.data(), spn.size_bytes() ) }; + return { reinterpret_cast< std::byte * >( spn.data() ), spn.size_bytes() }; #else return span< std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (to_size(sizeof(T)) * Extent) ) >( reinterpret_cast< std::byte * >( spn.data() ), spn.size_bytes() ); // NOLINT