mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-22 20:30:11 +00:00
fix: add missing explicit
to detail::region
This commit is contained in:
parent
19cc9a2edf
commit
7fb93e2f54
@ -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())
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user