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:
@@ -85,8 +85,8 @@ void ExpressionSplitter::operator()(Block& _block)
|
||||
vector<Statement> saved;
|
||||
swap(saved, m_statementsToPrefix);
|
||||
|
||||
function<boost::optional<vector<Statement>>(Statement&)> f =
|
||||
[&](Statement& _statement) -> boost::optional<vector<Statement>> {
|
||||
function<std::optional<vector<Statement>>(Statement&)> f =
|
||||
[&](Statement& _statement) -> std::optional<vector<Statement>> {
|
||||
m_statementsToPrefix.clear();
|
||||
visit(_statement);
|
||||
if (m_statementsToPrefix.empty())
|
||||
|
||||
Reference in New Issue
Block a user