mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make use of C++17 std::optional<> instead of boost::optional<>.
This commit is contained in:
@@ -30,7 +30,7 @@ void BlockFlattener::operator()(Block& _block)
|
||||
|
||||
iterateReplacing(
|
||||
_block.statements,
|
||||
[](Statement& _s) -> boost::optional<vector<Statement>>
|
||||
[](Statement& _s) -> std::optional<vector<Statement>>
|
||||
{
|
||||
if (_s.type() == typeid(Block))
|
||||
return std::move(boost::get<Block>(_s).statements);
|
||||
|
||||
Reference in New Issue
Block a user