16,472
社区成员
发帖
与我相关
我的任务
分享
template <typename writer_trait, typename reader_trait>
class filer_trait
{
public:
typedef typename writer_trait writer_type;
typedef typename reader_trait reader_type;
};
//This is a helper function, not part of the STL-SL
int main() {
return 0;
}
C:\Windows\system32\cmd.exe /c make
[100%] Building CXX object CMakeFiles/test.dir/test.cpp.obj
G:\workspace\test\test.cpp:12:19: error: expected nested-name-specifier before '
writer_trait'
G:\workspace\test\test.cpp:12:32: error: expected ';' before 'writer_type'
G:\workspace\test\test.cpp:13:19: error: expected nested-name-specifier before '
reader_trait'
G:\workspace\test\test.cpp:13:32: error: expected ';' before 'reader_type'