mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Disable ADL for as_const, it triggers ambiguities in VC14
This commit is contained in:
@@ -32,8 +32,8 @@ bool test_nth_index_of(Container &c)
|
||||
//index 0
|
||||
it = c.nth(0);
|
||||
sz = c.index_of(it);
|
||||
cit = as_const(c).nth(0);
|
||||
csz = as_const(c).index_of(cit);
|
||||
cit = (as_const)(c).nth(0);
|
||||
csz = (as_const)(c).index_of(cit);
|
||||
|
||||
if(it != c.begin())
|
||||
return false;
|
||||
@@ -48,8 +48,8 @@ bool test_nth_index_of(Container &c)
|
||||
const typename Container::size_type sz_div_2 = c.size()/2;
|
||||
it = c.nth(sz_div_2);
|
||||
sz = c.index_of(it);
|
||||
cit = as_const(c).nth(sz_div_2);
|
||||
csz = as_const(c).index_of(cit);
|
||||
cit = (as_const)(c).nth(sz_div_2);
|
||||
csz = (as_const)(c).index_of(cit);
|
||||
|
||||
if(it != (c.begin()+sz_div_2))
|
||||
return false;
|
||||
@@ -63,8 +63,8 @@ bool test_nth_index_of(Container &c)
|
||||
//index size()
|
||||
it = c.nth(c.size());
|
||||
sz = c.index_of(it);
|
||||
cit = as_const(c).nth(c.size());
|
||||
csz = as_const(c).index_of(cit);
|
||||
cit = (as_const)(c).nth(c.size());
|
||||
csz = (as_const)(c).index_of(cit);
|
||||
|
||||
if(it != c.end())
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user