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

Open-source license? #11

Open
jgcodes2020 opened this issue Sep 8, 2021 · 3 comments
Open

Open-source license? #11

jgcodes2020 opened this issue Sep 8, 2021 · 3 comments

Comments

@jgcodes2020
Copy link

I'm looking to use the implementation of spanstream in my library.

@PeterSommerlad
Copy link
Owner

PeterSommerlad commented Sep 8, 2021

The example code showing implementability of spanstream was never meant to be production ready. as it is based on libstdc++ implementation of stringstream, it comes with libstdc++ GNU license. however, why do you want to use it and for what purpose?

@jgcodes2020
Copy link
Author

As of now, no library implements std::spanstream, and I'm planning to use it as a means to read embedded resources (in the form of a big array) as a file.

@PeterSommerlad
Copy link
Owner

If you are using gcc I do not see a major problem with that, since as a derived work my spanstream implementation "inherits" libstdc++'s GPL. But there may be other (non C++ compiler) libraries implementing spanstream, but I do not know. At least Microsoft has a spanstream implementation in a development branch.

But I am far from a legal expert, so if this is for commercial production code it might get someone into problems.

OTOH, I think I am expert enough to provide a licensed implementation completely done by myself for your compiler for a fee compensating my time, if that is a real need, but you can also DIY, if that is cheaper for you if licensing might be an issue. The specification is public :-)

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