Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

old_version_0.6中的LogStream.h文件中的问题 #23

Open
wangyazhao001 opened this issue Jun 6, 2019 · 2 comments
Open

old_version_0.6中的LogStream.h文件中的问题 #23

wangyazhao001 opened this issue Jun 6, 2019 · 2 comments

Comments

@wangyazhao001
Copy link

在LogStream.h文件中定义了两个类,一个是class FixedBuffer,另一个是class LogStream。我想请问下,在class LogStream中 “typedef FixedBuffer Buffer”,其中FixedBuffer是什么意思啊? “类<int型>”这样的结构我还没有见过,请问能不能解释下啊》

@linyacool
Copy link
Owner

这就是模板的一种用法啊,给一个数字,就是一种全新的类型,STL里面也用到了我记得

@wangyazhao001
Copy link
Author

这就是模板的一种用法啊,给一个数字,就是一种全新的类型,STL里面也用到了我记得

明白了,是我修改代码的时候不小心把前面的模板声明给删了!感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants