Skip to content

Commit

Permalink
Fix closing parenthesis in disabled line of as_bytes() (issue #3, tha…
Browse files Browse the repository at this point in the history
…nks to @chris0e3)

also in as_writeable_bytes()
  • Loading branch information
martinmoene committed May 1, 2018
1 parent 9fce5a8 commit e3f509d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nonstd/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ inline span< const std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (t
as_bytes( span<T,Extent> 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
Expand All @@ -919,7 +919,7 @@ inline span< std::byte, ( (Extent == dynamic_extent) ? dynamic_extent : (to_size
as_writeable_bytes( span<T,Extent> 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
Expand Down

0 comments on commit e3f509d

Please sign in to comment.