Skip to content

Commit

Permalink
Merge pull request #3557 from rcurtin/additional-cxx17-msvc-doc-fix
Browse files Browse the repository at this point in the history
Remove other uses of /Zc:__cplusplus in the documentation.
  • Loading branch information
rcurtin committed Nov 22, 2023
2 parents 1839274 + 2c10539 commit 751ba46
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

* Use HTTPS for all auto-downloaded dependencies (#3550).

* More robust detection of C++17 mode in the MSVC "compiler" (#3555).
* More robust detection of C++17 mode in the MSVC "compiler" (#3555, #3557).

* Fix setting number of classes correctly in `SoftmaxRegression::Train()`
(#3553).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<AdditionalIncludeDirectories>C:\mlpack\armadillo-11.4.1\include;C:\mlpack\mlpack-4.2.1\include\;C:\mlpack\cereal-1.3.2\include;C:\mlpack\ensmallen-2.19.0\include\%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<LanguageStandard>stdcpp17</LanguageStandard>
<OpenMPSupport>false</OpenMPSupport>
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
4 changes: 2 additions & 2 deletions doc/user/build_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ an existing one). The library is immediately ready to be included
(via preprocessor directives) and used in your project without additional
configuration.

Note that when building mlpack, the `/std:c++17` and `/Zc:__cplusplus` options
are required for Visual Studio.
Note that when building mlpack, the `/std:c++17` option is required for Visual
Studio.

## Build Environment

Expand Down
8 changes: 4 additions & 4 deletions doc/user/sample_ml_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ this issue, disable "Conformance Mode" under C/C++ > Language.
*Note*: you may need to change the paths of the include directories or libraries
above, given how you installed the dependencies.

*Note*: mlpack requires that the `/std:c++17` and `/Zc:__cplusplus` options be
set for the Visual Studio compiler. This is done by default in the provided
example, but for your own projects, make sure that these options are set,
otherwise compilation will fail.
*Note*: mlpack requires that the `/std:c++17` option be set for the Visual
Studio compiler. This is done by default in the provided example, but for your
own projects, make sure that these options are set, otherwise compilation will
fail.

## The App's Goal

Expand Down

0 comments on commit 751ba46

Please sign in to comment.