Core/Misc: C++17 cleanups, commit 2, the advstd commit

(cherry picked from commit 857f8d9231)
This commit is contained in:
Treeston
2020-03-19 17:18:01 +01:00
committed by Shauren
parent 632609b897
commit ea0aa63d96
19 changed files with 40 additions and 156 deletions

View File

@@ -18,9 +18,9 @@
#ifndef TRINITY_BASE_ENCODING_HPP
#define TRINITY_BASE_ENCODING_HPP
#include "advstd.h"
#include "Define.h"
#include "Optional.h"
#include <numeric>
#include <string>
#include <vector>
@@ -32,7 +32,7 @@ template <typename Encoding>
struct GenericBaseEncoding
{
static constexpr std::size_t BITS_PER_CHAR = Encoding::BITS_PER_CHAR;
static constexpr std::size_t PAD_TO = advstd::lcm(8u, BITS_PER_CHAR);
static constexpr std::size_t PAD_TO = std::lcm(8u, BITS_PER_CHAR);
static_assert(BITS_PER_CHAR < 8, "Encoding parameters are invalid");