Skip to content

Commit ba296c7

Browse files
committed
to_string fix C4702
I spotted this line looks like another instance that'll cause a C4702 unreachable code. D:\dev\OpenVIII_CPP_WIP\cmake-build-debug-visual-studio\_deps\ctre_fetch-src\include\ctre\return_type.hpp(131) : error C2220: the following warning is treated as an error D:\dev\OpenVIII_CPP_WIP\cmake-build-debug-visual-studio\_deps\ctre_fetch-src\include\ctre\return_type.hpp(131) : warning C4702: unreachable code
1 parent 2b1a1b2 commit ba296c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/ctre/return_type.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ template <size_t Id, typename Name = void> struct captured_content {
127127
} else {
128128
return std::basic_string<char_type>(begin(), end());
129129
}
130-
#endif
131-
return std::basic_string<char_type>(begin(), end());
130+
#else
131+
return std::basic_string<char_type>(begin(), end());
132+
#endif
132133
}
133134

134135
constexpr CTRE_FORCE_INLINE auto view() const noexcept {

0 commit comments

Comments
 (0)