diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-20 13:39:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-20 13:39:57 +0200 |
commit | a897445b7d0b8f62825fc51da6de616ec360e612 (patch) | |
tree | 61f627925015e12f7ee85f7de7ad3a96eea62cf6 /tests/compiler/traversal/driver.cxx | |
parent | 5ac814bb4563de8b98d11f81c98b51beca2f0071 (diff) |
Resolve ambiguity with indirectly-included std::shared_ptr
Diffstat (limited to 'tests/compiler/traversal/driver.cxx')
-rw-r--r-- | tests/compiler/traversal/driver.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/compiler/traversal/driver.cxx b/tests/compiler/traversal/driver.cxx index b1fea74..65580aa 100644 --- a/tests/compiler/traversal/driver.cxx +++ b/tests/compiler/traversal/driver.cxx @@ -23,7 +23,7 @@ struct base struct derived1: base {}; struct derived2: base {}; -typedef vector<shared_ptr<base> > objects; +typedef vector<cutl::shared_ptr<base> > objects; struct init { @@ -103,6 +103,8 @@ struct combined_impl: derived1_trav, derived2_trav int main () { + using cutl::shared_ptr; + objects o; o.push_back (shared_ptr<base> (new (shared) base)); o.push_back (shared_ptr<base> (new (shared) derived1)); |