Update to C++20
This commit is contained in:
parent
d0473cd136
commit
69fca74d3c
@ -52,7 +52,7 @@ if(BUILD_TESTS)
|
||||
endif()
|
||||
|
||||
|
||||
target_compile_options(rjp++ PUBLIC -Wall -Wextra -pedantic -std=c++17 ${LIBREXY_CFLAGS_OTHER})
|
||||
target_compile_options(rjp++ PUBLIC -Wall -Wextra -pedantic -std=c++20 ${LIBREXY_CFLAGS_OTHER})
|
||||
target_include_directories(rjp++ PUBLIC ${LIBREXY_INCLUDE_DIRS})
|
||||
target_link_libraries(rjp++ PUBLIC rjp ${LIBREXY_LINK_LIBRARIES})
|
||||
|
||||
|
||||
@ -25,8 +25,8 @@
|
||||
namespace rjp{
|
||||
|
||||
namespace detail{
|
||||
struct allocator
|
||||
{
|
||||
struct allocator{
|
||||
using value_type = char;
|
||||
using size_type = size_t;
|
||||
using pointer = char*;
|
||||
using const_pointer = const char*;
|
||||
|
||||
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0.2)
|
||||
project(rjp++_tests)
|
||||
set(INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
include_directories("${INCLUDE_PATH}")
|
||||
add_compile_options(-Wall -Wextra -pedantic -std=c++17)
|
||||
add_compile_options(-Wall -Wextra -pedantic -std=c++20)
|
||||
link_libraries(rjp++ rjp)
|
||||
|
||||
if(ENABLE_PROFILING)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user