Skip to content

Commit ac09477

Browse files
Apply recommended docs changes
1 parent b1699de commit ac09477

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

docpages/example_code/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ foreach (example ${example_list})
6161
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
6262
target_compile_options(${examplename}_out PRIVATE -fmodules-ts)
6363
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
64-
target_compile_options(${examplename}_out PRIVATE
64+
target_compile_options(${examplename}_out PRIVATE
6565
-fmodules
66-
-mavx2
6766
-fprebuilt-module-path=${CMAKE_SOURCE_DIR}/../../build/library/CMakeFiles/dpp.dir
6867
)
6968
endif()

docpages/example_code/using_modules.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <string>
2-
#include <typeinfo>
32

43
import dpp;
54

docpages/example_programs/misc/using_modules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
\page using_modules Using D++ with C++ modules
22

3+
\include{doc} modules_warn.dox
4+
35
D++ is offered as a C++ module, which offers improved compile times over a traditional header.
46

57
In order to enable support, you must use C++20 (or later) with any module-supporting compiler. To activate the feature, pass the `DPP_MODULES` flag to CMake. Ensure that the generated build system supports modules (for CMake, this is usually Ninja; note CMake does not currently support modules with Makefile).

docpages/include/coro_warn.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
\warning D++ Coroutines are currently only supported by D++ on g++ 13, clang/LLVM 14, and MSVC 19.37 or above. Additionally, your program has to support C++20.
1+
\warning D++ coroutines are currently only supported by D++ on g++ 13, clang/LLVM 14, and MSVC 19.37 or above. Additionally, your program has to support C++20.

docpages/include/modules_warn.dox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\warning D++ modules are currently only supported by D++ on g++ 15, clang/LLVM 17, and MSVC 17.6 or above. Additionally, your program has to support C++20.

include/dpp/etf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace dpp {
4242
/**
4343
* @brief Current ETF format version in use
4444
*/
45-
inline const uint8_t FORMAT_VERSION = 131;
45+
inline constexpr uint8_t FORMAT_VERSION = 131;
4646

4747
/**
4848
* @brief Represents a token which identifies the type of value which follows it

0 commit comments

Comments
 (0)