From d7ff19b5e759f6cbfe5252def1f0159174783edb Mon Sep 17 00:00:00 2001 From: ZincCat <52513999+zinccat@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:43:18 -0700 Subject: [PATCH] Update cpp_export.rst Updated specified c++ version from 14 to 17 --- advanced_source/cpp_export.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced_source/cpp_export.rst b/advanced_source/cpp_export.rst index 5dedbdaaa65..45556a5320f 100644 --- a/advanced_source/cpp_export.rst +++ b/advanced_source/cpp_export.rst @@ -203,7 +203,7 @@ minimal ``CMakeLists.txt`` to build it could look as simple as: add_executable(example-app example-app.cpp) target_link_libraries(example-app "${TORCH_LIBRARIES}") - set_property(TARGET example-app PROPERTY CXX_STANDARD 14) + set_property(TARGET example-app PROPERTY CXX_STANDARD 17) The last thing we need to build the example application is the LibTorch distribution. You can always grab the latest stable release from the `download