There is a manipulator to disable the whitespace skipping behavior:
stream >> std::noskipws;
More Related Contents:
- Which kind of pointer do I use when?
- std::enable_if to conditionally compile a member function
- Is std::unique_ptr required to know the full definition of T?
- Does “int size = 10;” yield a constant expression?
- How do I use a custom deleter with a std::unique_ptr member?
- Is it safe to link C++17, C++14, and C++11 objects
- Why can’t clang with libc++ in c++0x mode link this boost::program_options example?
- C++11 features in Visual Studio 2012
- What is the partial ordering procedure in template deduction
- C++11: I can go from multiple args to tuple, but can I go from tuple to multiple args? [duplicate]
- Split a string using C++11
- Move constructor for std::mutex
- Why does ‘std::vector b{2};’ create a 1-element vector, and not a 2-element one?
- Capturing perfectly-forwarded variable in lambda
- SFINAE works differently in cases of type and non-type template parameters
- C++ local variable destruction order
- Unique_ptr and forward declaration
- C++11 initializer list fails – but only on lists of length 2
- Why not to inherit from std::allocator
- Should I include every header?
- CRTP — accessing incomplete type members
- `static constexpr` function called in a constant expression is…an error?
- Classes with both template and non-template conversion operators in the condition of switch statement
- Why can’t I use with g++ 4.9.2?
- C++11 Change `auto` Lambda to a different Lambda?
- Why does std::forward have two overloads?
- C++11 cross compiler/standard library random distribution reproducibility
- Is it possible to invoke a user-defined conversion function via list-initialization?
- Is there a proper ‘ownership-in-a-package’ for ‘handles’ available?
- get part of std::tuple