We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5e9d7 commit 87415acCopy full SHA for 87415ac
1 file changed
cpp2rust/converter/translation_rule.h
@@ -54,10 +54,10 @@ struct MethodCallFragment {
54
};
55
56
struct TypeInfo {
57
+ std::vector<std::string> derives;
58
std::string type;
59
bool is_refcount_pointer = false;
60
bool is_unsafe_pointer = false;
- std::vector<std::string> derives;
61
62
bool is_pointer() const { return is_refcount_pointer || is_unsafe_pointer; }
63
@@ -84,13 +84,13 @@ struct TypeRule {
84
void dump() const;
85
86
static TypeRule Plain(std::string type) {
87
- return {{}, {}, {std::move(type), false, false}};
+ return {{}, {}, {{}, std::move(type), false, false}};
88
}
89
static TypeRule RefcountPtr(std::string type) {
90
- return {{}, {}, {std::move(type), true, false}};
+ return {{}, {}, {{}, std::move(type), true, false}};
91
92
static TypeRule UnsafePtr(std::string type) {
93
- return {{}, {}, {std::move(type), false, true}};
+ return {{}, {}, {{}, std::move(type), false, true}};
94
95
96
0 commit comments