Solved

Question for Axter   (about basic_ios)

Posted on 2002-06-06
5
293 Views
Last Modified: 2010-04-02
Axter,

Thank you for your explanation for my last question
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20308360

I want to know a little more:)

>According to the C++ standard, you're not allow to pass by value.

What is a C++ standard? Do I have that :-)

>private:
>basic_ios(const basic_ios& ); // not defined
>basic_ios& operator=(const basic_ios&); // not defined
>istream and istringstream both derive from basic_ios.  
>The standard defines basic_ios copy constructor
>and assignment operator as both private and not defined.

You mean 'private' shoul avoid basic_ios to be copied by me in compiling time?

And how do I know what belong to basic_ios ?
0
Comment
Question by:learn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
Axter earned 60 total points
ID: 7060449
>>What is a C++ standard? Do I have that :-)
More then likely not.  It's not free, and it doesn't come with any of the major compilers.

You can get a draft copy free from the following link:
http://cs.calvin.edu/c++/C++Standard-Nov97/

You can purchase the C++ standard via the following link:
http://webstore.ansi.org/ansidocstore/product.asp?sku=ISO%2FIEC+14882%2D1998
0
 
LVL 30

Expert Comment

by:Axter
ID: 7060451
>>You mean 'private' shoul avoid basic_ios to be copied by
>>me in compiling time?

Yes.


>>And how do I know what belong to basic_ios ?
The C++ standard states that it's a decendent of basic_ios.
0
 
LVL 22

Expert Comment

by:nietod
ID: 7060453
>> What is a C++ standard? Do I have that :-)
The C++ standard is the set of rules that define the C++ language.  The define the sytax of the C++ language (i.e. ";" ends a statement, "::" is the scope resolution operator), how language constructs are to behave (i.e. what does a for loop do) how memory is to be organized (memory is stored by bytes of at least 8 bits.  Each byte must be large enough to store a character of the host's character set.  Each byte is stored at unique addresses....).   Amazingly about 1/2 of the standard does not deal with the Langauge proper, but with the STL library, which is really a library written in the C++ language, and not (in many ways) part of the language.

The standard was developed by a joint committee of ANSI (American National standards Institute) and ISO (International standards Organization (In English)).   If you are interested in its development I strongly suggest you read Bjarne Stroustrup's The Design and Evolution of C++.   It takes you form the Roots of C++ to nearly the end of its standarization.   Its entertaining reading and of some (not a lot) value to a programmer.
0
 

Author Comment

by:learn
ID: 7060482
To nietod,

Thanks a lot for your interesting explanation :-)
0
 

Author Comment

by:learn
ID: 7060484
Thanks for your help.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question