File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 41
41
#include < boost/algorithm/string/predicate.hpp>
42
42
#include < boost/algorithm/string/replace.hpp>
43
43
#include < boost/algorithm/string/split.hpp>
44
- #include < boost/range/adaptor/sliced.hpp>
45
44
#include < boost/range/algorithm/copy.hpp>
46
45
47
46
#include < range/v3/view/enumerate.hpp>
48
47
#include < range/v3/view/reverse.hpp>
48
+ #include < range/v3/view/tail.hpp>
49
49
#include < range/v3/view/transform.hpp>
50
50
51
51
#include < limits>
@@ -3694,7 +3694,7 @@ MemberList::MemberMap TypeType::nativeMembers(ASTNode const* _currentScope) cons
3694
3694
auto bases = contract.annotation ().linearizedBaseContracts ;
3695
3695
solAssert (bases.size () >= 1 , " linearizedBaseContracts should at least contain the most derived contract." );
3696
3696
// `sliced(1, ...)` ignores the most derived contract, which should not be searchable from `super`.
3697
- for (ContractDefinition const * base: bases | boost::adaptors::sliced ( 1 , bases. size ()) )
3697
+ for (ContractDefinition const * base: bases | ranges::views::tail )
3698
3698
for (FunctionDefinition const * function: base->definedFunctions ())
3699
3699
{
3700
3700
if (!function->isVisibleInDerivedContracts () || !function->isImplemented ())
Original file line number Diff line number Diff line change 25
25
#include < boost/algorithm/string.hpp>
26
26
27
27
#include < range/v3/view/transform.hpp>
28
+ #include < range/v3/view/filter.hpp>
29
+ #include < range/v3/range/conversion.hpp>
28
30
29
31
using namespace std ;
30
32
using namespace solidity ::langutil;
@@ -961,7 +963,7 @@ General Information)").c_str(),
961
963
if (countEnabledOptions (nonAssemblyModeOptions) >= 1 )
962
964
{
963
965
auto optionEnabled = [&](string const & name){ return m_args.count (name) > 0 ; };
964
- auto enabledOptions = boost::copy_range<vector<string>>( nonAssemblyModeOptions | boost::adaptors::filtered (optionEnabled)) ;
966
+ auto enabledOptions = nonAssemblyModeOptions | ranges::views::filter (optionEnabled) | ranges::to_vector ;
965
967
966
968
serr () << " The following options are invalid in assembly mode: " ;
967
969
serr () << joinOptionNames (enabledOptions) << " ." ;
You can’t perform that action at this time.
0 commit comments