-
Notifications
You must be signed in to change notification settings - Fork 47
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
Moved cache file management to Scene class #261
Conversation
brayns/common/geometry/Cone.h
Outdated
@@ -38,6 +38,7 @@ struct Cone | |||
{ | |||
} | |||
|
|||
Cone() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
= default
} | ||
|
||
const size_t version = CACHE_VERSION; | ||
file.write((char*)&version, sizeof(size_t)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not file << version? everywhere in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all elements have this operator implemented. Some of those elements being in the process of being replaced, I will leave your comments to a later PR if that's acceptable?
|
||
// File version | ||
size_t version; | ||
file.read((char*)&version, sizeof(size_t)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also works backwards :) file >> version;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito
No description provided.