-
Notifications
You must be signed in to change notification settings - Fork 176
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
feat: Surface::toStream
overload without stream argument
#3335
feat: Surface::toStream
overload without stream argument
#3335
Conversation
I'm adding a way that allows you to avoid having to write ```cpp surface->toStream(gctx, std::cout); std::cout << std::endl; ``` and instead write ```cpp std::cout << surface->toStream(gctx) << std::endl; ``` This is done by returning a temporary helper struct that implements `operator<<`.
Surface::toStream
overload without stream argument
I think @benjaminhuth did something similar here #1327 which requires |
yeah, maybe this is more intuitive than |
Should we replace it then and converge on one version? |
Would be fine for me. |
Could you add this also to the doxygen description of |
@andiwand That's a breaking change then? |
@paulgessinger Really up to you... If your unawareness of |
📊: Physics performance monitoring for 7f28e0bphysmon summary
|
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.
Let's get it in!
|
I'm adding a way that allows you to avoid having to write
surface->toStream(gctx, std::cout); std::cout << std::endl;
and instead write
std::cout << surface->toStream(gctx) << std::endl;
This is done by returning a temporary helper struct that implements
operator<<
.