Replies: 1 comment
-
|
The nanobind function calls into Python to do the printing, and Python sends its output to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am working on my first project which uses nanobind. I have C++ code which calls nanobind::print and I want to test it. I tried to redirect the output of std::cout to a local std::ostringsteam, but when using nanobind::print I don't see any output content being added to the local ostringstream. How do I get the underlying rdbuf that nanobind::print uses? Any help is welcome.
The relevant piece of code is:
Beta Was this translation helpful? Give feedback.
All reactions