File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1
1
#include " Type.h"
2
2
3
- std::string Type::str () const { return " " ; }
4
-
5
- bool Type::usesType (const std::shared_ptr<Type> &type,
6
- bool stopOnTypeDefs) const {
7
- return false ;
8
- }
9
-
10
- bool Type::operator ==(const Type &other) const { return false ; }
11
-
12
3
bool Type::operator !=(const Type &other) const { return !(*this == other); }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Type {
11
11
public:
12
12
virtual ~Type () = default ;
13
13
14
- virtual std::string str () const ;
14
+ virtual std::string str () const = 0 ;
15
15
16
16
/* *
17
17
* @param stopOnTypeDefs if this parameter is true then TypeDefs instances
@@ -21,9 +21,9 @@ class Type {
21
21
* typedef are found.
22
22
*/
23
23
virtual bool usesType (const std::shared_ptr<Type> &type,
24
- bool stopOnTypeDefs) const ;
24
+ bool stopOnTypeDefs) const = 0 ;
25
25
26
- virtual bool operator ==(const Type &other) const ;
26
+ virtual bool operator ==(const Type &other) const = 0 ;
27
27
28
28
virtual bool operator !=(const Type &other) const ;
29
29
};
You can’t perform that action at this time.
0 commit comments