Solved

Question for Axter   (about basic_ios)

Posted on 2002-06-06
5
290 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
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

777 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