Skip to content

Commit c32ce58

Browse files
authored
Update cpp_export.rst (#2970)
Updated specified c++ version from 14 to 17
1 parent 0572327 commit c32ce58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

advanced_source/cpp_export.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ minimal ``CMakeLists.txt`` to build it could look as simple as:
203203
204204
add_executable(example-app example-app.cpp)
205205
target_link_libraries(example-app "${TORCH_LIBRARIES}")
206-
set_property(TARGET example-app PROPERTY CXX_STANDARD 14)
206+
set_property(TARGET example-app PROPERTY CXX_STANDARD 17)
207207
208208
The last thing we need to build the example application is the LibTorch
209209
distribution. You can always grab the latest stable release from the `download

0 commit comments

Comments
 (0)