ljfa-ag / libnbtplusplus

A C++ library for Minecraft's file format NBT
GNU Lesser General Public License v3.0
78 stars 25 forks source link

Fix Compilation Issue (C++14) & GCC Warning #9

Closed RobertLeahy closed 8 years ago

RobertLeahy commented 8 years ago

Fixed an ambiguous call to nbt::make_unique in nbt::tag_list::init. This call was ambiguous due to ADL (std::string argument) and the existence of std::make_unique when building with a C++14-conforming library.

Removed the name from the second parameter to the constructor of nbt::text::json_fmt_visitor in src/text/json_formatter.cpp to eliminate a GCC warning about an unused parameter (-Wunused-parameter which comes as part of -Wextra).

ljfa-ag commented 8 years ago

Thank you!