forked from lthn/blockchain
removed warning
This commit is contained in:
parent
2c74d4a6e7
commit
6b963cfbf1
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ namespace epee
|
|||
template<class stl_container, class t_storage>
|
||||
static bool serialize_stl_container_pod_val_as_blob(const stl_container& container, t_storage& stg, typename t_storage::hsection hparent_section, const char* pname)
|
||||
{
|
||||
static_assert(std::is_trivial<stl_container::value_type>::value, "Item supposed to be 'trivial'(trivially copyable)");
|
||||
static_assert(std::is_trivial<typename stl_container::value_type>::value, "Item supposed to be 'trivial'(trivially copyable)");
|
||||
if(!container.size()) return true;
|
||||
std::string mb;
|
||||
mb.resize(sizeof(typename stl_container::value_type)*container.size());
|
||||
|
|
@ -141,7 +141,7 @@ namespace epee
|
|||
template<class stl_container, class t_storage>
|
||||
static bool unserialize_stl_container_pod_val_as_blob(stl_container& container, t_storage& stg, typename t_storage::hsection hparent_section, const char* pname)
|
||||
{
|
||||
static_assert(std::is_trivial<stl_container::value_type>::value, "Item supposed to be 'trivial'(trivially copyable)");
|
||||
static_assert(std::is_trivial<typename stl_container::value_type>::value, "Item supposed to be 'trivial'(trivially copyable)");
|
||||
container.clear();
|
||||
std::string buff;
|
||||
bool res = stg.get_value(pname, buff, hparent_section);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue