Fix build with g++13

This commit is contained in:
Jan 2023-10-01 10:50:39 +02:00
parent 98528db8aa
commit dd56a57a3e
8 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,6 @@
#include "StateMapLayout.h"
#include <algorithm>
#include <cassert>
using namespace state_map;

View File

@ -1,5 +1,5 @@
#pragma once
#include <cstddef>
#include <string>
#include <vector>

View File

@ -1,5 +1,6 @@
#pragma once
#include <cstddef>
#include <cstdint>
#include <string>
#include <vector>

View File

@ -1,5 +1,5 @@
#pragma once
#include <cstdint>
#include <string>
#include <vector>

View File

@ -50,6 +50,10 @@ public:
if (!m_args.m_build_log_file.empty())
{
fs::path p = fs::path(m_args.m_build_log_file).parent_path();
if (!p.empty())
fs::create_directories(p);
m_build_log_file = std::ofstream(m_args.m_build_log_file, std::ios::out | std::ios::binary);
if (!m_build_log_file.is_open())
{

View File

@ -1,4 +1,5 @@
#pragma once
#include <cstdint>
#include <string>
class XBlock

View File

@ -5,9 +5,9 @@
AbstractSalsa20Processor::AbstractSalsa20Processor(const int streamCount, std::string& zoneName, const uint8_t* salsa20Key, size_t keySize)
: m_stream_count(streamCount),
m_stream_contexts(std::make_unique<StreamContext[]>(streamCount)),
m_block_hashes(std::make_unique<uint8_t[]>(BLOCK_HASHES_COUNT * streamCount * SHA1_HASH_SIZE)),
m_stream_block_indices(std::make_unique<unsigned int[]>(streamCount))
{
m_block_hashes = std::make_unique<uint8_t[]>(BLOCK_HASHES_COUNT * streamCount * SHA1_HASH_SIZE);
InitStreams(zoneName, salsa20Key, keySize);
}

View File

@ -1,4 +1,5 @@
#pragma once
#include <cstdint>
#include "LoadingException.h"
class InvalidXBlockSizeException final : public LoadingException