URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
template struct static_abort {};
|
template struct static_abort {};
|
|
|
template
|
template
|
struct any
|
struct any
|
{
|
{
|
const E& self() const { return static_cast(*this); }
|
const E& self() const { return static_cast(*this); }
|
};
|
};
|
|
|
struct range : public any
|
struct range : public any
|
{
|
{
|
range() {}
|
range() {}
|
|
|
template
|
template
|
range(const U&)
|
range(const U&)
|
{
|
{
|
typedef typename static_abort::ret t;
|
typedef typename static_abort::ret t;
|
}
|
}
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
const any& r = *new range();
|
const any& r = *new range();
|
r.self();
|
r.self();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.