Update to C++20

This commit is contained in:
rexy712 2022-05-24 17:32:46 -07:00
parent d0473cd136
commit 69fca74d3c
3 changed files with 4 additions and 4 deletions

View File

@ -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})

View File

@ -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*;

View File

@ -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)