473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error in Sutter book?

Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

....

process( in.is_open() ? in : cin,...);
Where process has been shown as having various multiple different
possible definitions. Among them is:

void process(basic_istream<char>& in,..);

I get errors when I try to do this in visual studio. It looked like an
erroneous construct to me to begin with (using ternary with two
different types being passed back) so I wanted to verify that it
actually worked and it doesn't. I also tried something like so:

istream & s = in.is_open() ? in : cin;

no go.

Working with pointers does work:

istream * s = in.is_open() ? &in : &cin;

This does not:

istream * s = &(in.is_open() ? in : cin);

Is the compiler breaking the standard here or is the use of the ternary
operator flawed?

Another definition he has is:

template < typename In, typename Out>
void process(In & in, Out & out)
{
....
}

But again, how can the ternary operator be used as such:

process(in.is_open() ? in : cin, ...)

I suppose the compiler could be really smart and derive a template
based on istream instead of either fstream or whatever cin is but I
don't think there is such a thing, is there? Or it could create two
instances of process and create a totally different branching
construct...again, I don't know of any that would and that seems on the
outside of qualifying for "as if".

But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.

Nov 15 '06 #1
24 2097

Noah Roberts wrote:
istream & s = in.is_open() ? in : cin;
I suppose the error recieved might be of benefit. It is the same for
all uses (except the one pointer use that works) of the ternary
operator in my op.
1>c:\program files\microsoft visual studio 8\vc\include\istream(842) :
error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access
private member declared in class 'std::basic_ios<_Elem,_Traits>'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 c:\program files\microsoft visual studio
8\vc\include\ios(151) : see declaration of
'std::basic_ios<_Elem,_Traits>::basic_ios'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 This diagnostic occurred in the compiler generated function
'std::basic_istream<_Elem,_Traits>::basic_istream( const
std::basic_istream<_Elem,_Traits&)'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]

Nov 15 '06 #2
Noah Roberts wrote:
Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);
Where process has been shown as having various multiple different
possible definitions. Among them is:

void process(basic_istream<char>& in,..);

I get errors when I try to do this in visual studio.
Works fine for me with both GCC and Comeau.
Nov 15 '06 #3
* Noah Roberts:
Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);
Where process has been shown as having various multiple different
possible definitions. Among them is:

void process(basic_istream<char>& in,..);

I get errors when I try to do this in visual studio. It looked like an
erroneous construct to me to begin with (using ternary with two
different types being passed back) so I wanted to verify that it
actually worked and it doesn't. I also tried something like so:

istream & s = in.is_open() ? in : cin;

no go.

Working with pointers does work:

istream * s = in.is_open() ? &in : &cin;

This does not:

istream * s = &(in.is_open() ? in : cin);

Is the compiler breaking the standard here or is the use of the ternary
operator flawed?
Depends whether 'in' and 'cin' are of identical type. If they are, and
both are lvalues, the result is an lvalue. Otherwise the result is an
rvalue, which implies copying, which is meaningless for streams.
[snip]
But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.
Check the errate pages. Perhaps there's something.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 15 '06 #4
* Noah Roberts:
>
But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.
I was just skimming the 2nd edition of "The C++ Programming Language" by
Bjarne Stroustrup. Here 'main' is variously declared as

int main() {}
main() {}
void main() {}

Nobody's prefect.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 15 '06 #5

Alf P. Steinbach wrote:
* Noah Roberts:
Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);
Is the compiler breaking the standard here or is the use of the ternary
operator flawed?

Depends whether 'in' and 'cin' are of identical type. If they are, and
both are lvalues, the result is an lvalue. Otherwise the result is an
rvalue, which implies copying, which is meaningless for streams.
Since cin is set as an istream by the standard and in is an fstream
they are obviously not the same type even though they are related
types.
>

[snip]
But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.

Check the errate pages. Perhaps there's something.
It isn't there.

Nov 15 '06 #6

Alf P. Steinbach wrote:
* Noah Roberts:

But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.

I was just skimming the 2nd edition of "The C++ Programming Language" by
Bjarne Stroustrup. Here 'main' is variously declared as

int main() {}
main() {}
void main() {}

Nobody's prefect.
That's a rather minor error though. This one, if it is an error,
tosses out the entire advice given in that section. The first 5 pages
or so of the book become completely erroneous. This is why I'm trying
to figure out why I'm wrong and the book is right even though it
obviously doesn't compile on at least one pretty common compiler.

Nov 15 '06 #7
Item #1 in the More Exceptional C++ book uses the following construct:
>
fstream in;

...

process( in.is_open() ? in : cin,...);

Regrettably, I don't have a copy of this book, but could it be that it
declares the variable 'in' as an ifstream instead of an fstream? That
would seem to make sense in light of the downstream code
void process(basic_istream<char>& in,..);
Michael

Nov 15 '06 #8
Alf P. Steinbach wrote:
* Noah Roberts:

But if I am right, how did this make it into such a high profile
book by such a high profile author...so I question my understanding.

I was just skimming the 2nd edition of "The C++ Programming Language"
by Bjarne Stroustrup. Here 'main' is variously declared as

int main() {}
main() {}
void main() {}

Nobody's prefect.
The second edition was pre-standard, I believe. The first two forms
were probably correct at the time, but I don't know about the third.
Consistency would probably have been better.


Brian
Nov 15 '06 #9
* Noah Roberts:
Alf P. Steinbach wrote:
>* Noah Roberts:
>>Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);
>>Is the compiler breaking the standard here or is the use of the ternary
operator flawed?
Depends whether 'in' and 'cin' are of identical type. If they are, and
both are lvalues, the result is an lvalue. Otherwise the result is an
rvalue, which implies copying, which is meaningless for streams.

Since cin is set as an istream by the standard and in is an fstream
they are obviously not the same type even though they are related
types.
The standard does not say anything about cin, only about std::cin.

>[snip]
>>But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.
Check the errate pages. Perhaps there's something.

It isn't there.
Too bad. Would you care to post a /complete/ code example? Then I (or
others) can say whether it's actually an error in the book (assuming
it's not an example of invalid code, discussed as such), or whether it's
a misinterpretation or something on your part.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 15 '06 #10

Noah Roberts wrote:

I was just skimming the 2nd edition of "The C++ Programming Language" by
Bjarne Stroustrup. Here 'main' is variously declared as

int main() {}
main() {}
void main() {}

Nobody's prefect.

Indeed. However, that 2nd edition was published in 1991. It's a
venerable antique. Retire it to a top shelf somewhere and try again
with an up-to-date book, such as my 3rd edition - especially recent
printings; I maintain my books.

In 1991, seven years before we managed to ban "implicit int" in the
standard, plain

main() { }

was legal, as it had been since the first days of C.

"void main()" never was legal in C or C++. See :
http://www.research.att.com/~bs/bs_faq2.html#void-main

Assuming I wrote "void main", it was a bug. As somone said "nobody is
perfect". I had a quick look, but didn't find any occurrences of "void
main".

-- Bajrne Stroustrup; http://www.research.att.com/~bs

Nov 16 '06 #11

Alf P. Steinbach wrote:
The standard does not say anything about cin, only about std::cin.
That's not being honest Alf. You know exactly to what I refer.
>
[snip]
But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.
Check the errate pages. Perhaps there's something.
It isn't there.

Too bad. Would you care to post a /complete/ code example? Then I (or
others) can say whether it's actually an error in the book (assuming
it's not an example of invalid code, discussed as such), or whether it's
a misinterpretation or something on your part.
2. Write an ECHO program that simply echoes its input and that can be
invoked equivalently in the two following ways:

ECHO <infile >outfile
ECHO infile outfile

The Tersest Solution:
#include <iostream>
#include <fstream>

int main(int argc, char* argv[])
{
using namespace std;

(argc 2
? ofstream(argv[2], ios::out | ios::binary)
: cout)
<<
(argc 1
? ifstream(argv[1], ios::in | ios::binary)
: cin)
.rdbuf();
}
VC++ 8 output:
1>playground.cpp
1>c:\program files\microsoft visual studio 8\vc\include\ostream(581) :
error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access
private member declared in class 'std::basic_ios<_Elem,_Traits>'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 c:\program files\microsoft visual studio
8\vc\include\ios(151) : see declaration of
'std::basic_ios<_Elem,_Traits>::basic_ios'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 This diagnostic occurred in the compiler generated function
'std::basic_ostream<_Elem,_Traits>::basic_ostream( const
std::basic_ostream<_Elem,_Traits&)'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1>c:\program files\microsoft visual studio 8\vc\include\istream(842) :
error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access
private member declared in class 'std::basic_ios<_Elem,_Traits>'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 c:\program files\microsoft visual studio
8\vc\include\ios(151) : see declaration of
'std::basic_ios<_Elem,_Traits>::basic_ios'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 This diagnostic occurred in the compiler generated function
'std::basic_istream<_Elem,_Traits>::basic_istream( const
std::basic_istream<_Elem,_Traits&)'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1>Project : warning PRJ0018 :

Nov 16 '06 #12

Michael wrote:
Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);

Regrettably, I don't have a copy of this book, but could it be that it
declares the variable 'in' as an ifstream instead of an fstream? That
would seem to make sense in light of the downstream code
No, it doesn't. In the terse example he does though and that also
doesn't work on this compiler.

Nov 16 '06 #13

Noah Roberts wrote:
Michael wrote:
Item #1 in the More Exceptional C++ book uses the following construct:
>
fstream in;
>
...
>
process( in.is_open() ? in : cin,...);
>
>
Regrettably, I don't have a copy of this book, but could it be that it
declares the variable 'in' as an ifstream instead of an fstream? That
would seem to make sense in light of the downstream code

No, it doesn't.
err, it makes sense...the book doesn't do it.
In the terse example he does though and that also
doesn't work on this compiler.
Nov 16 '06 #14
Noah Roberts wrote:
I also tried something like so:

fstream in;
istream & s = in.is_open() ? in : cin;

no go.
It works for me. The error message you posted, doesn't seem to
correspond to this construct. Can you post a complete program
that gives the error? (and the error itself that that program gives
you).

Also, try this:
istream & s = in.is_open() ? static_cast<istream &>(in) : cin;

Then the compiler will know to convert cin to istream& .

Nov 16 '06 #15
Noah Roberts wrote:
Item #1 in the More Exceptional C++ book uses the following construct:

fstream in;

...

process( in.is_open() ? in : cin,...);
Where process has been shown as having various multiple different
possible definitions. Among them is:

void process(basic_istream<char>& in,..);

I get errors when I try to do this in visual studio. It looked like an
erroneous construct to me to begin with (using ternary with two
different types being passed back) so I wanted to verify that it
actually worked and it doesn't.
I've experienced similar compiler errors on other platforms. I don't
recall the exact details but it was something quite similar (write to
file or stdout, depending on something else). I believe g++ and Sun CC
accepted this, but HP's aCC compiler did not.
Nov 16 '06 #16
"Noah Roberts" <ro**********@gmail.comwrote:
>I get errors when I try to do this in visual studio. It looked like an
erroneous construct to me to begin with (using ternary with two
different types being passed back) so I wanted to verify that it
actually worked and it doesn't. I also tried something like so:

istream & s = in.is_open() ? in : cin;

no go.

Working with pointers does work:

istream * s = in.is_open() ? &in : &cin;

This does not:

istream * s = &(in.is_open() ? in : cin);

Is the compiler breaking the standard here or is the use of the ternary
operator flawed?
I'm not sure what it says in your printing, but IIRC in should have type
ifstream and out should have type ofstream. Then the code compiles fine
under most modern compilers (incl. EDG and gcc 3.x and 4.x).

It also worked fine under VC++ 6 (current when the book was published),
but oddly it apparently doesn't under VC++ 7.1 (2003) and 8.0 (2005). Hmm.
I'll look into it. In the meantime, a workaround would be to not use the
cuteness of the ternary operator, and work with a pointer instead:

ifstream in;
basic_istream<char>* i = &cin;

ofstream out;
basic_ostream<char>* o = &cout;

if( argc 1 ) {
in.open ( argv[1], ios::in | ios::binary );
i = &in;
}

if( argc 2 ) {
out.open( argv[2], ios::out | ios::binary );
o = &out;
}

Process( *i, *o );

Cheers,

Herb

---
Herb Sutter (www.gotw.ca) (www.pluralsight.com/blogs/hsutter)

Convener, ISO WG21 (C++ standards committee) (www.gotw.ca/iso)
Architect, Developer Division, Microsoft (www.gotw.ca/microsoft)
Nov 16 '06 #17
* Noah Roberts:
Alf P. Steinbach wrote:
>The standard does not say anything about cin, only about std::cin.

That's not being honest Alf. You know exactly to what I refer.
No, I don't have that book.

>>>[snip]
But if I am right, how did this make it into such a high profile book
by such a high profile author...so I question my understanding.
Check the errate pages. Perhaps there's something.
It isn't there.
Too bad. Would you care to post a /complete/ code example? Then I (or
others) can say whether it's actually an error in the book (assuming
it's not an example of invalid code, discussed as such), or whether it's
a misinterpretation or something on your part.

2. Write an ECHO program that simply echoes its input and that can be
invoked equivalently in the two following ways:

ECHO <infile >outfile
ECHO infile outfile

The Tersest Solution:
#include <iostream>
#include <fstream>

int main(int argc, char* argv[])
{
using namespace std;

(argc 2
? ofstream(argv[2], ios::out | ios::binary)
: cout)
<<
(argc 1
? ifstream(argv[1], ios::in | ios::binary)
: cin)
.rdbuf();
}
Compilation fails with Comeau Online 4.3.8 and with MSVC 7.1, and as you
pointed out (snipped by me) with MSVC 8.0. It succeeds with g++ 3.4.4.

We're in §5.16/3, operands of different class types, call them E1 and
E2. Analysis of the first :? expression, with

E1 === std::ofstream( ... ) T1 === std::ofstream
E2 === std::cout T2 === std::ostream

where T1 is derived publicly from T2.

"If E2 is an lvalue", yes, then "E1 can be converted ..." to a direct
reference to T2, if that implicit conversion exists. It doesn't,
because E1 is an rvalue and std::ofstream naturally doesn't provide an
operator std::ostream&(). Next, there is a possible implicit conversion
to rvalue T2, which as I understand would involve copy construction, but
there is not or should not be any such accessible copy constructor in
std::ostream. Next, in para 5, if unsuccessful so far, the result is an
rvalue and overload resolution is applied to find a conversion, which
seems to be the same already tried above, but anyway, can't succeed for
the same reason: there's no applicable conversion function.

Next, the roles of E1 and E2 need to be switched and this new situation
analysed, but there's no way to convert std::ostream down to std::ofstream.

CC: Herb Sutter.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #18
"Noah Roberts" <ro**********@gmail.comwrote:
1 This diagnostic occurred in the compiler generated function
'std::basic_istream<_Elem,_Traits>::basic_istream( const
std::basic_istream<_Elem,_Traits&)'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
There is your problem Noah. The code you are showing us is not the code
you get the error from. The above error is complaining about an attempt
to copy construct an istream, which of course can't be done.

--
To send me email, put "sheltie" in the subject.
Nov 16 '06 #19
* bjarne:
Noah Roberts wrote:
>>I was just skimming the 2nd edition of "The C++ Programming Language" by
Bjarne Stroustrup. Here 'main' is variously declared as

int main() {}
main() {}
void main() {}

Nobody's prefect.


Indeed. However, that 2nd edition was published in 1991. It's a
venerable antique. Retire it to a top shelf somewhere and try again
with an up-to-date book, such as my 3rd edition - especially recent
printings; I maintain my books.
I had the 3rd edition, but somebody got away with "borrowing" it and
never returning it. I don't know who that somebody was. However, I
also have the first edition, and that's very nice! :-) Ach, old books.
I also have the first edition of K&R TCPPPL, and of "The Unix
Programming Environment" -- those were great days, with books written
for programmers rather than for modern students (dumbed down and
fattened up) or for language lawyers (almost artificially obfuscated),
and I really enjoyed and learned much from the first edition of TCPPPL.

In 1991, seven years before we managed to ban "implicit int" in the
standard, plain

main() { }

was legal, as it had been since the first days of C.

"void main()" never was legal in C or C++. See :
http://www.research.att.com/~bs/bs_faq2.html#void-main

Assuming I wrote "void main", it was a bug. As somone said "nobody is
perfect". I had a quick look, but didn't find any occurrences of "void
main".
First example I found now at the end of section 7.3.2, page 233. ;-)

Cheers,

- Alf

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #20
Noah Roberts wrote:
(argc 2
? ofstream(argv[2], ios::out | ios::binary)
: cout)
This is not equivalent to

ofstream out(argv[2], ios::out | ios::binary);

(argc 2 ? out : cout)

Nov 16 '06 #21

Herb Sutter wrote:
I'm not sure what it says in your printing, but IIRC in should have type
ifstream and out should have type ofstream. Then the code compiles fine
under most modern compilers (incl. EDG and gcc 3.x and 4.x).
I have the 8th printing, Aug. 2006, and it says "fstream in, out;" for
the declaration in the main function that uses Process from examples
1-2 a and b.

However, even if I use those types I still get the same result
(altering the first example a bit):
#include <iostream>
#include <fstream>

int main(int argc, char* argv[])
{
using namespace std;

ifstream f(argv[1], ios::in | ios::binary);

(argc 2
? cout
: cout)
<<
(argc 1
? f
: cin)
.rdbuf();
}

I'm aware of all the potential errors here, I'm just looking for a
compile.

Of course, that isn't really any different from the original...

It seems the ternary operator has decided to do some sort of conversion
that isn't working even for the explicit ixxx/oxxx types. It just
doesn't want to handle that type of use...that's the point of failure
for any type of fstream and cin/cout.
>
It also worked fine under VC++ 6 (current when the book was published),
but oddly it apparently doesn't under VC++ 7.1 (2003) and 8.0 (2005). Hmm.
I'll look into it. In the meantime, a workaround would be to not use the
cuteness of the ternary operator, and work with a pointer instead:

ifstream in;
basic_istream<char>* i = &cin;

ofstream out;
basic_ostream<char>* o = &cout;

if( argc 1 ) {
in.open ( argv[1], ios::in | ios::binary );
i = &in;
}

if( argc 2 ) {
out.open( argv[2], ios::out | ios::binary );
o = &out;
}

Process( *i, *o );

Yeah, that will work. I was just curious which is right, you or the
compiler. When you figure it out I would very much like to know and
you can post to my personal email, ro**********@gmail.com, if you wish.

Here's the compiler error for completeness. It happens any time
cin/cout are on one side and any type of fstream is on the other. It
handles pointers just fine though.
1>c:\program files\microsoft visual studio 8\vc\include\istream(842) :
error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access
private member declared in class 'std::basic_ios<_Elem,_Traits>'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 c:\program files\microsoft visual studio
8\vc\include\ios(151) : see declaration of
'std::basic_ios<_Elem,_Traits>::basic_ios'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]
1 This diagnostic occurred in the compiler generated function
'std::basic_istream<_Elem,_Traits>::basic_istream( const
std::basic_istream<_Elem,_Traits&)'
1 with
1 [
1 _Elem=char,
1 _Traits=std::char_traits<char>
1 ]

Nov 16 '06 #22
Alf P. Steinbach wrote:
* Noah Roberts:
Alf P. Steinbach wrote:
The standard does not say anything about cin, only about std::cin.
That's not being honest Alf. You know exactly to what I refer.

No, I don't have that book.
I don't think I will ever understand why some people choose to play
this kind of game. You can claim you don't know but we both know you
do, and did all along, but for some reason want to pretend you don't
and so we have to take 50 steps back into pedant mode and pretend to
bring you up to speed. There's no reason for it really; it serves no
other purpose than to slow down discussion and I honestly don't get it.
My guess is that it is some sort of power play mechanism but I don't
really understand why you would feel the need for that with me. I find
people that choose this method of communication very frustrating to
work with.
Next, the roles of E1 and E2 need to be switched and this new situation
analysed, but there's no way to convert std::ostream down to std::ofstream.

CC: Herb Sutter.
Thank you for your eventual answer.

Nov 16 '06 #23
* Noah Roberts:
Alf P. Steinbach wrote:
>* Noah Roberts:
>>Alf P. Steinbach wrote:

The standard does not say anything about cin, only about std::cin.
That's not being honest Alf. You know exactly to what I refer.
No, I don't have that book.

I don't think I will ever understand why some people choose to play
this kind of game. You can claim you don't know but we both know you
do, and did all along, but for some reason want to pretend you don't
and so we have to take 50 steps back into pedant mode and pretend to
bring you up to speed. There's no reason for it really; it serves no
other purpose than to slow down discussion and I honestly don't get it.
My guess is that it is some sort of power play mechanism but I don't
really understand why you would feel the need for that with me. I find
people that choose this method of communication very frustrating to
work with.
It's necessary to be precise, exact, when discussing a possible error
(or for that matter, any technical issue).

I'm not a telepath able to see at a distance what you've read in the
book, and when something isn't defined, it can be anything.

Hence, the request for clarification, and for a complete example.

>Next, the roles of E1 and E2 need to be switched and this new situation
analysed, but there's no way to convert std::ostream down to std::ofstream.

CC: Herb Sutter.

Thank you for your eventual answer.
You're welcome.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 16 '06 #24

Noah Roberts wrote in message ...
>
When you figure it out I would very much like to know and
**you can post to my personal email**, if you wish.
Please don't, there are others who may want to know!!

--
Bob R
POVrookie
Nov 16 '06 #25

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: Steven T. Hatton | last post by:
Pete Vilder mentioned this a few days back. This is the "Compiler-Firewall Idiom", or pimple. It's similar to an approach taken in some Java designs. AAMOF, when I saw it in Java, my first...
3
by: Dave | last post by:
Hello all, I found Herb Sutter's article regarding error handling in the most recent CUJ to be very, very good. However, in trying to apply what I learned from the article, I am left with some...
0
by: ketan | last post by:
Hi, While understanding name lookup using item 32 of EC++ ( Sutter ), i found error from gcc bit unclear. It will be great if anyone can help me. In short - compiler complains about...
7
by: The|Godfather | last post by:
Hi everybody, I read Scotte Meyer's "Effective C++" book twice and I know that he mentioned something specific about constructors and destructors that was related to the following...
2
by: puzzlecracker | last post by:
Why Attempt #3 is Deplorable First, let's consider a few reasons why Attempt #3 above truly is deplorable form: 1. Alignment. Unlike dynamic memory acquired by ::operator new(), the x_...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.