make region::source immutable

This commit is contained in:
ToruNiina
2018-12-02 21:03:08 +09:00
parent c38b9b7dc7
commit 9c1bfbd5eb

View File

@@ -28,7 +28,7 @@ struct location
location& operator=(location&&) = default; location& operator=(location&&) = default;
~location() = default; ~location() = default;
std::shared_ptr<Container> source; std::shared_ptr<const Container> source;
const_iterator iter; const_iterator iter;
}; };
@@ -55,7 +55,7 @@ struct region
~region() = default; ~region() = default;
const_iterator first, last; const_iterator first, last;
std::shared_ptr<Container> source; std::shared_ptr<const Container> source;
}; };
// to show a better error message. // to show a better error message.