Skip to content

Commit

Permalink
C++14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlaine committed Feb 12, 2021
1 parent 1171815 commit 269fd3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions native/src/seal/randomgen.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

namespace seal
{
inline constexpr std::size_t prng_seed_uint64_count = 8;
constexpr std::size_t prng_seed_uint64_count = 8;

inline constexpr std::size_t prng_seed_byte_count = prng_seed_uint64_count * util::bytes_per_uint64;
constexpr std::size_t prng_seed_byte_count = prng_seed_uint64_count * util::bytes_per_uint64;

using prng_seed_type = std::array<std::uint64_t, prng_seed_uint64_count>;

Expand Down
2 changes: 1 addition & 1 deletion native/src/seal/serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace seal
std::uint64_t size = 0;
};

static_assert(sizeof(SEALHeader) == seal_header_size);
static_assert(sizeof(SEALHeader) == seal_header_size, "");

/**
Returns true if the given byte corresponds to a supported compression mode.
Expand Down
2 changes: 1 addition & 1 deletion native/tests/seal/util/mempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ namespace sealtest
TEST(MemoryPoolTests, Allocate)
{
MemoryPool &pool = *global_variables::global_memory_pool;
vector<seal_byte> bytes{ seal_byte{ 0 }, seal_byte{ 1 }, seal_byte{ 2 }, seal_byte{ 3 }, seal_byte{ 4 } };
vector<seal_byte> bytes{ seal_byte(0), seal_byte(1), seal_byte(2), seal_byte(3), seal_byte(4) };
auto ptr = allocate(bytes.begin(), bytes.size(), pool);
ASSERT_TRUE(equal(bytes.begin(), bytes.end(), ptr.get()));
}
Expand Down

0 comments on commit 269fd3c

Please sign in to comment.