Skip to content

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

Merged
nlohmann merged 1 commit into
nlohmann:developfrom
alexandermyasnikov:develop
Apr 5, 2020
Merged

nlohmann merged 1 commit into
nlohmann:developfrom
alexandermyasnikov:develop

Conversation

@alexandermyasnikov

Copy link
Copy Markdown
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.

@nlohmann nlohmann left a comment

Copy link
Copy Markdown
Owner

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

nlohmann commented Apr 5, 2020

Copy link
Copy Markdown
Owner

🔖 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