comparison gcc/testsuite/g++.dg/overload/defarg4.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
4 4
5 class foo 5 class foo
6 { 6 {
7 template<typename U> 7 template<typename U>
8 static bool func(const U& x) 8 static bool func(const U& x)
9 {} 9 { return true; }
10 public: 10 public:
11 template<typename U> 11 template<typename U>
12 unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const 12 unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
13 {} 13 { return 0; }
14 }; 14 };
15 15
16 class bar { 16 class bar {
17 bool Initialize(); 17 bool Initialize();
18 protected: 18 protected:
20 }; 20 };
21 21
22 bool bar::Initialize() 22 bool bar::Initialize()
23 { 23 {
24 b.Find(b); 24 b.Find(b);
25 return false;
25 } 26 }
26 27