Skip to content
Snippets Groups Projects
Commit 4ee06f32 authored by Christoph Pohl's avatar Christoph Pohl
Browse files

Fixed compilation issues under U21.10

parent 9e684f3c
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ elseif(NOT "" STREQUAL "$ENV{Simox_BOOST_VERSION}")
SET(Simox_BOOST_VERSION $ENV{Simox_BOOST_VERSION})
elseif(RELEASE_CODENAME STREQUAL focal OR RELEASE_CODENAME STREQUAL odin)
SET(Simox_BOOST_VERSION 1.71.0)
elseif(RELEASE_CODENAME STREQUAL impish)
SET(Simox_BOOST_VERSION 1.74.0)
else()
SET(Simox_BOOST_VERSION 1.65.1)
endif()
......
......@@ -21,7 +21,7 @@
#pragma once
#include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <locale>
......
......@@ -5,6 +5,7 @@
#include <initializer_list>
#include <map>
#include <string>
#include <optional>
#include <SimoxUtility/algorithm/apply.hpp>
#include <SimoxUtility/algorithm/minmax.h>
......
......@@ -9627,7 +9627,7 @@ class binary_writer
static CharType to_char_type(std::uint8_t x) noexcept
{
static_assert(sizeof(std::uint8_t) == sizeof(CharType), "size of CharType must be equal to std::uint8_t");
static_assert(std::is_pod<CharType>::value, "CharType must be POD");
static_assert(std::is_standard_layout_v<CharType> && std::is_trivial_v<CharType>, "CharType must be POD");
CharType result;
std::memcpy(&result, &x, sizeof(x));
return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment