Fix compile for GCC 5.1.0

Add fix for compile error with multiple uses of peerid_type (uint64_t)
variable in lambda expression.
- known GCC issue: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65843

epee: replace return value of nullptr for expected boolean with false.

Fixes #231.
This commit is contained in:
warptangent 2015-05-25 22:07:17 -07:00
parent 6f15194049
commit 696225321f
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
2 changed files with 6 additions and 2 deletions

View file

@ -427,7 +427,7 @@ namespace epee
TRY_ENTRY();
CHECK_AND_ASSERT(hsec_array, false);
if(hsec_array->type() != typeid(array_entry_t<section>))
return nullptr;
return false;
array_entry_t<section>& sec_array = boost::get<array_entry_t<section>>(*hsec_array);
h_child_section = sec_array.get_next_val();
if(!h_child_section)