mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
make region::source immutable
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user