Skip to content

Commit

Permalink
improve TORRENT_RVO feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Aug 27, 2023
1 parent 7208996 commit 3a44a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libtorrent/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ POSSIBILITY OF SUCH DAMAGE.
#define __has_builtin(x) 0 // for non-clang compilers
#endif

#if __cplusplus >= 202002L
#ifdef __cpp_guaranteed_copy_elision
#define TORRENT_RVO(x) x
#else
#define TORRENT_RVO(x) std::move(x)
Expand Down

0 comments on commit 3a44a5a

Please sign in to comment.