Skip to content

Commit

Permalink
remove duplicated forward
Browse files Browse the repository at this point in the history
  • Loading branch information
expnkx committed Feb 19, 2022
1 parent eca67b6 commit ca76143
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions include/fast_io_core_impl/freestanding/addressof.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ template<typename T>
return static_cast<T&&>(t);
}

template<typename T>
#if __has_cpp_attribute(gnu::always_inline)
[[gnu::always_inline]]
#elif __has_cpp_attribute(msvc::forceinline)
[[msvc::forceinline]]
#endif
[[nodiscard]] inline constexpr T&& forward(std::remove_reference_t<T>&& t) noexcept
{
return static_cast<T&&>(t);
}

template<typename T>
#if __has_cpp_attribute(gnu::always_inline)
[[gnu::always_inline]]
Expand Down

0 comments on commit ca76143

Please sign in to comment.