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

fix error 'setw' is not a member of 'std' in Wandbox example #2002

Merged
merged 1 commit into from
Apr 5, 2020
Merged

fix error 'setw' is not a member of 'std' in Wandbox example #2002

merged 1 commit into from
Apr 5, 2020

Conversation

alexandermyasnikov
Copy link
Contributor

Example on Wandbox does not run. I get error:

prog.cc: In function 'int main()':
prog.cc:37:18: error: 'setw' is not a member of 'std'
     std::cout << std::setw(4) << j << '\n';

I added #include <iomanip> in example.
Now example run without errors.

Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann nlohmann self-assigned this Apr 5, 2020
@nlohmann nlohmann added this to the Release 3.7.4 milestone Apr 5, 2020
@nlohmann nlohmann merged commit 554e8c7 into nlohmann:develop Apr 5, 2020
@nlohmann
Copy link
Owner

nlohmann commented Apr 5, 2020


🔖 Release item

This issue/PR will be part of the next release of the library. This template helps preparing the release notes.

Type

  • ✨ New Feature
  • 🐛 Bug Fix
  • ⚡️ Improvement
  • 🔨 Further Change
  • 🔥 Deprecated function

Description


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants