blob: 5026415bac3570509e190f09088b970063978356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _TEMPLATE_ARGS_H_
#define _TEMPLATE_ARGS_H_
template <typename T>
struct Bar {
Bar & ref() { return *this; }
const Bar & const_ref() { return *this; }
const Bar & const_ref_const() const { return *this; }
T value;
};
template <typename T>
struct Foo {
int bar_value(const Bar<int> & bar) { return bar.value; }
};
#endif
|