Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8164881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:24:49+00:00 2026-06-06T19:24:49+00:00

On this website , the description of the iostringstream::write function says that: In case

  • 0

On this website, the description of the iostringstream::write function says that:

In case of error, the badbit flag is set

What could those errors be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:24:50+00:00Added an answer on June 6, 2026 at 7:24 pm

    The obvious error when writing to a stringstream would be if the underlying stringbuffer failed to allocate memory to hold the data being written. Also note, however, that the link you’ve given is to ostream::write, which could fail for other reasons (e.g., writing to a pipe that’s been closed or a file on a disk that’s full and/or the write would exceed what the user’s allowed).

    Aside #1: there’s no such thing as an iostringstream — there’s istringstream and ostringstream. The one that combines both is just stringstream.

    Aside #2: cplusplus.com isn’t particularly highly respected. Some other sites (e.g., cppreference.com) seem to be more dependable/accurate, at least as a general rule (though I feel obliged to point out that I don’t use any of the above much myself, so my comments on them aren’t anywhere close to the last word).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when I'm trying to write on my DB, he website
Visit this website. https://zapier.com/ See this portion of the website. I wan that same
I have this website http://wedessertmore.com that has some forms popup when you click on
I ran into LESS website and this is the description of they are doing
I get this error message when i use URL Linter with my website http://developers.facebook.com/tools/debug/og/object?q=iulianonofrei.com
I have MVC3 website with edit form. On this form there is DropDownList that
I don't know how to describe this, but I have a website that dynamically
I run a website that allows users to write blog-post, I would really like
My Description I have a website application that relies heavily on Javascript and JQuery.
Description: I often run into this problem when I have a website located in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.