declare/define static const member correctly

This commit is contained in:
Thomas Fussell 2016-11-27 16:01:23 +01:00
parent 7ac3d8a612
commit d353bbf42c

View File

@ -98,7 +98,7 @@ namespace detail {
struct crypto_helper
{
static const std::size_t segment_length = 4096;
static const std::size_t segment_length;
enum class cipher_algorithm
{
@ -715,6 +715,8 @@ struct crypto_helper
}
};
const std::size_t crypto_helper::segment_length = 4096;
void xlsx_consumer::read(std::istream &source, const std::string &password)
{
std::vector<std::uint8_t> data((std::istreambuf_iterator<char>(source)),