Skip to content

Commit 406d034

Browse files
authored
Merge pull request #64 from jaw/rvo_optional
Add PoC with optional replacement which enforces return value optimiz…
2 parents 3ed7291 + 47178af commit 406d034

4 files changed

Lines changed: 542 additions & 0 deletions

File tree

‎poc/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ if(WIN32)
1111
add_subdirectory(int_to_string)
1212
endif()
1313

14+
add_subdirectory(rvo_optional)
1415
add_subdirectory(variadic_template_arguments)

‎poc/rvo_optional/CMakeLists.txt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is part of KDToolBox.
2+
#
3+
# SPDX-FileCopyrightText: 2026 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
4+
#
5+
# SPDX-License-Identifier: MIT
6+
#
7+
project(test_rvo_optional LANGUAGES CXX)
8+
9+
set(CMAKE_CXX_STANDARD 20)
10+
11+
add_executable(test_rvo_optional main.cpp)
12+
target_compile_options(test_rvo_optional PRIVATE -O3)

0 commit comments

Comments
 (0)