mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-26 14:20:05 +00:00
make region::source immutable
This commit is contained in:
parent
c38b9b7dc7
commit
9c1bfbd5eb
@ -28,7 +28,7 @@ struct location
|
||||
location& operator=(location&&) = default;
|
||||
~location() = default;
|
||||
|
||||
std::shared_ptr<Container> source;
|
||||
std::shared_ptr<const Container> source;
|
||||
const_iterator iter;
|
||||
};
|
||||
|
||||
@ -55,7 +55,7 @@ struct region
|
||||
~region() = default;
|
||||
|
||||
const_iterator first, last;
|
||||
std::shared_ptr<Container> source;
|
||||
std::shared_ptr<const Container> source;
|
||||
};
|
||||
|
||||
// to show a better error message.
|
||||
|
Loading…
Reference in New Issue
Block a user