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 8469133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:08:19+00:00 2026-06-10T16:08:19+00:00

I have old c++ code using strstream and using pcount and freeze methods of

  • 0

I have old c++ code using strstream and using pcount and freeze methods of the same.
I want to use stringstream class instead. What are the substitute for pcount and freeze methods of strstream? The code is something like this:

strstream log; // this will change to: stringstream log;

if (log.pcount()) //????
{
    log << ends;
    *myLog << log.str() << logmsg;
}

log.freeze(0); //????
  • 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-10T16:08:20+00:00Added an answer on June 10, 2026 at 4:08 pm

    freeze() is something which has and need no replacement, its purpose is the handling of memory.

    log.pcount() can be replaced with log.str().size() if your stringstream is output only. If not, I don’t think there is a good replacement. BTW, ends is unneeded as well.

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

Sidebar

Related Questions

I recently modified some old UI code using Delphi's VCL to use ADO instead
I have a piece of old code that used a query using WQL to
I have a bunch of old C code, which I compiled using MinGW, and
I have a short question i have wrote this in java. Old code: class
I have an old untyped class pre Java1.5 and need to refactor it using
We have been using Microsoft Enterprise Lib for data access, some old legacy code
I have this old code using Sych doing : yaml_as tag:yaml.org,2002:#{self} def to_yaml(opts =
I'm about to have to rewrite some rather old code using SQL Server's BULK
We have some really old code that calls WebServices using behaviours (webservice.htc), and we
HI i have an old code which uses a scrapref and selects scrap using

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.