1
0
Fork 0
forked from lthn/blockchain

gcc compilation fixes

This commit is contained in:
sowle 2024-09-30 05:06:17 +02:00
parent 744522f3ca
commit 27e310bb84
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 3 additions and 3 deletions

View file

@ -106,9 +106,9 @@ namespace epee
return res;
if constexpr (is_std_optional<t_pod_type>::value)
{
t_pod_type::value_type v = AUTO_VAL_INIT(v);
typename t_pod_type::value_type v = AUTO_VAL_INIT(v);
if (!epee::string_tools::hex_to_pod(a, v))
throw std::runtime_error(std::string("Unable to transform \"") + a + "\" to pod type " + typeid(t_pod_type::value_type).name());
throw std::runtime_error(std::string("Unable to transform \"") + a + "\" to pod type " + typeid(typename t_pod_type::value_type).name());
return v;
}

View file

@ -9,7 +9,7 @@
#include "offers_tests_common.h"
#include "tx_builder.h"
#include "chaingen_helpers.h"
#include "..\..\src\currency_core\tx_semantic_validation.h"
#include "../../src/currency_core/tx_semantic_validation.h"
using namespace epee;
using namespace crypto;