fix: add missing explicit to detail::region

This commit is contained in:
ToruNiina 2020-07-27 00:20:26 +09:00
parent 19cc9a2edf
commit 7fb93e2f54

View File

@ -202,11 +202,11 @@ struct region final : public region_base
// delete default constructor. source_ never be null. // delete default constructor. source_ never be null.
region() = delete; region() = delete;
region(const location& loc) explicit region(const location& loc)
: source_(loc.source()), source_name_(loc.name()), : source_(loc.source()), source_name_(loc.name()),
first_(loc.iter()), last_(loc.iter()) first_(loc.iter()), last_(loc.iter())
{} {}
region(location&& loc) explicit region(location&& loc)
: source_(loc.source()), source_name_(loc.name()), : source_(loc.source()), source_name_(loc.name()),
first_(loc.iter()), last_(loc.iter()) first_(loc.iter()), last_(loc.iter())
{} {}