URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/35773
|
// PR c++/35773
|
|
|
template< typename T >
|
template< typename T >
|
class auto_ptr
|
class auto_ptr
|
{
|
{
|
struct auto_ptr_ref { };
|
struct auto_ptr_ref { };
|
public:
|
public:
|
auto_ptr(auto_ptr&);
|
auto_ptr(auto_ptr&);
|
auto_ptr(auto_ptr_ref);
|
auto_ptr(auto_ptr_ref);
|
|
|
operator auto_ptr_ref();
|
operator auto_ptr_ref();
|
};
|
};
|
|
|
template< typename T >
|
template< typename T >
|
class reference_wrapper
|
class reference_wrapper
|
{
|
{
|
public:
|
public:
|
reference_wrapper(T& t);
|
reference_wrapper(T& t);
|
operator T& () const;
|
operator T& () const;
|
};
|
};
|
|
|
struct X { };
|
struct X { };
|
|
|
void f(auto_ptr< X >);
|
void f(auto_ptr< X >);
|
|
|
void g(reference_wrapper< auto_ptr< X > > r)
|
void g(reference_wrapper< auto_ptr< X > > r)
|
{
|
{
|
f(r);
|
f(r);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.