Skip to content

Testing - Update samples C++ version#606

Merged
dpasukhi merged 4 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:samples-cpp17
Jul 12, 2025
Merged

Testing - Update samples C++ version#606
dpasukhi merged 4 commits intoOpen-Cascade-SAS:IRfrom
dpasukhi:samples-cpp17

Conversation

@dpasukhi
Copy link
Copy Markdown
Member

Update C++ standard to C++17 in project files and action configuration

Update C++ standard to C++17 in project files and action configuration
@dpasukhi dpasukhi requested a review from Copilot July 12, 2025 14:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the C++ standard from C++11/GNU++11 to C++17 across all sample projects and build configurations. The purpose is to modernize the codebase to leverage C++17 features and maintain compatibility with current development standards.

Key changes include:

  • Updating Qt project files to use C++17 standard instead of GNU++11
  • Configuring Visual Studio project files to use C++17 language standard
  • Setting CMake projects to require C++17 standard

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
samples/qt/Tutorial/Tutorial.pro Updated QMAKE_CXXFLAGS to use C++17 for Unix and Windows
samples/qt/OCCTOverview/OCCTOverview.pro Updated QMAKE_CXXFLAGS to use C++17 for Unix and Windows
samples/qt/IESample/IESample.pro Updated QMAKE_CXXFLAGS to use C++17 for Unix and Windows
samples/qt/FuncDemo/FuncDemo.pro Updated QMAKE_CXXFLAGS to use C++17 for Unix and Windows
samples/qt/AndroidQt/OCCT.pri Added C++17 standard flag for Android and Windows builds
samples/mfc/standard/mfcsample/adm/win/vc10/mfcsample.vcxproj Added LanguageStandard property set to stdcpp17
samples/mfc/standard/mfcsample/CMakeLists.txt Set CMAKE_CXX_STANDARD to 17 with required flag
samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj Added LanguageStandard property set to stdcpp17
samples/mfc/standard/04_HLR/CMakeLists.txt Set CMAKE_CXX_STANDARD to 17 with required flag
samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj Added LanguageStandard property set to stdcpp17
samples/mfc/standard/03_ImportExport/CMakeLists.txt Set CMAKE_CXX_STANDARD to 17 with required flag
samples/mfc/standard/02_Modeling/adm/win/vc10/Modeling.vcxproj Added LanguageStandard property set to stdcpp17
samples/mfc/standard/02_Modeling/CMakeLists.txt Set CMAKE_CXX_STANDARD to 17 with required flag
samples/mfc/standard/01_Geometry/adm/win/vc10/Geometry.vcxproj Added LanguageStandard property set to stdcpp17
samples/mfc/standard/01_Geometry/CMakeLists.txt Set CMAKE_CXX_STANDARD to 17 with required flag
samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcxproj Added LanguageStandard property set to stdcpp17
samples/CSharp/OCCTProxy/OCCTProxy.vcxproj Added LanguageStandard property set to stdcpp17
.github/actions/build-tinspector/action.yml Updated Inspector repository commit hash

<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
</PropertyGroup>
<PropertyGroup>
Copy link

Copilot AI Jul 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The PropertyGroup for LanguageStandard should be placed after the existing PropertyGroup sections that define configuration-specific properties for better organization and consistency with other vcxproj files in this PR.

Copilot uses AI. Check for mistakes.
@dpasukhi dpasukhi merged commit 3d3a47a into Open-Cascade-SAS:IR Jul 12, 2025
20 checks passed
@dpasukhi dpasukhi deleted the samples-cpp17 branch July 12, 2025 14:44
@github-project-automation github-project-automation Bot moved this from Todo to Done in Maintenance Jul 12, 2025
dpasukhi added a commit that referenced this pull request Oct 18, 2025
- Updating Qt project files to use C++17 standard instead of GNU++11
- Configuring Visual Studio project files to use C++17 language standard
- Setting CMake projects to require C++17 standard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants