我们说我有两个文件
namespace cpp something
struct Something { ... }
include "Something.thrift"
namespace cpp marvelous
struct IncludingSomething {
1: required something::Something;
}
此处无法识别范围解析运算符,如何从Something
访问Marvelous.thrift
?
答案 0 :(得分:1)
使用dot
运算符。所以喜欢这个
include "Something.thrift"
namespace cpp marvelous
struct IncludingSomething {
1: required something.Something;
}