Thanks to visit codestin.com
Credit goes to github.com

Skip to content

include missing sstream to stream#190

Merged
Kaaserne merged 1 commit into
Kaaserne:masterfrom
ErniGH:erni/fix-stream-missing-sstream-include
Feb 2, 2026
Merged

include missing sstream to stream#190
Kaaserne merged 1 commit into
Kaaserne:masterfrom
ErniGH:erni/fix-stream-missing-sstream-include

Conversation

@ErniGH

@ErniGH ErniGH commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

The type std::ostringstream is included in the sstream class: https://en.cppreference.com/w/cpp/io/basic_ostringstream.html

stream.hpp uses this type without including the standar header:

std::ostringstream oss;

This is generating me the next error:

...
FAILED: [code=1] CMakeFiles/test_package.dir/test_package.cpp.o 
/usr/bin/c++ -DCPP_LAZY_9_0_0_NEWER -isystem /Users/ernesto/.conan2/p/b/cpp-l1b5e6b4172af6/p/include -stdlib=libc++ -O3 -DNDEBUG -std=gnu++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk -mmacosx-version-min=13.0 -MD -MT CMakeFiles/test_package.dir/test_package.cpp.o -MF CMakeFiles/test_package.dir/test_package.cpp.o.d -o CMakeFiles/test_package.dir/test_package.cpp.o -c /Users/ernesto/Documents/GitHub/conan-center-index/recipes/cpp-lazy/all/test_package/test_package.cpp
In file included from /Users/ernesto/Documents/GitHub/conan-center-index/recipes/cpp-lazy/all/test_package/test_package.cpp:6:
/Users/ernesto/.conan2/p/b/cpp-l1b5e6b4172af6/p/include/Lz/stream.hpp:289:28: error: implicit instantiation of undefined template 'std::basic_ostringstream<char>'
  289 |         std::ostringstream oss;
      |                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.2.sdk/usr/include/c++/v1/__fwd/sstream.h:28:28: note: template is declared here
   28 | class _LIBCPP_TEMPLATE_VIS basic_ostringstream;
      |                            ^
1 error generated.
ninja: build stopped: subcommand failed.

@Kaaserne

Kaaserne commented Jan 28, 2026

Copy link
Copy Markdown
Owner

Looks like the pipeline has some issues. I'll look into these Sunday probably. Am on vacation right now. Thanks for the PR. Looks like the doctest URL is invalid, which is quite funny, cause I remembering having this issue but fixed it at the time. I think the CMake variable is named differently than referenced in the doctest URL in fetchcontent

@Kaaserne

Kaaserne commented Feb 2, 2026

Copy link
Copy Markdown
Owner

Pipeline issues are unrelated and aren't working because of how repository variables work. Should think of something more streamlined for that.

@Kaaserne Kaaserne merged commit 9971593 into Kaaserne:master Feb 2, 2026
17 of 67 checks passed
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

Successfully merging this pull request may close these issues.

2 participants