C++ Templates

F

Fraser Ross

If anyone has the book do you agree that on P439 there is a couple of
things saying the examples will cover 2 paramater pointers to functions
but the examples actually cover 3?

On P307 the only use of the <= operator must be wrong because the
program uses the < operator.

On 350 the footnote should also include CompoundT<T const &>.

None of this is on the erratta list online.

Fraser.
 
J

John Harrison

Fraser said:
If anyone has the book do you agree that on P439 there is a couple of
things saying the examples will cover 2 paramater pointers to functions
but the examples actually cover 3?

On P307 the only use of the <= operator must be wrong because the
program uses the < operator.

On 350 the footnote should also include CompoundT<T const &>.

None of this is on the erratta list online.

Fraser.

The first template parameter is the function return type. So it doesn't
represent a function parameter. IOW The template has three parameters to
represent a pointer to a function which has two parameters (and one
return type).

john

In case anyone was wondering this is the book 'C++ Templates' by
Vandervoorde and Josuttis.

john
 
F

Fraser Ross

The first template parameter is the function return type. So it
doesn't
represent a function parameter. IOW The template has three parameters to
represent a pointer to a function which has two parameters (and one
return type).

The classes cover 3 function parameters and a return type. The initial
writing says they will cover 2 function parameters. Also a declaration
of class FunctionPtr with the initial text covers 2 parameters. There
seems to have been a mix up somewhere.

I checked the missing partial specialisation on P350 with a couple of
compilers.

Fraser.
 
J

John Harrison

Fraser said:
If anyone has the book do you agree that on P439 there is a couple of
things saying the examples will cover 2 paramater pointers to functions
but the examples actually cover 3?

On P307 the only use of the <= operator must be wrong because the
program uses the < operator.

On 350 the footnote should also include CompoundT<T const &>.

None of this is on the erratta list online.

Fraser.

Yes you are right. Probably it's a mistake because of where the page
break is.

john
 
J

John Harrison

John said:
Yes you are right. Probably it's a mistake because of where the page
break is.

john

Why not email the author? I once emailed Josuttis above an error and he
responded very quickly. And he didn't mind that I'd bugged him with an
error that turned out not to be an error at all.

john
 
F

Fraser Ross

Why not email the author? I once emailed Josuttis above an error and
he
responded very quickly. And he didn't mind that I'd bugged him with an
error that turned out not to be an error at all.

I've not had any response recently. Theres a typo on P447 similar to
the one on P448.

Fraser.
 
V

vandevoorde

I've not had any response recently.

Sorry about that. I generally cannot keep up with all the e-mails
coming in. I do appreciate the reports, however. (And replied to
your latest messages some minutes ago.)

Thanks again,

Daveed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

templates?? 2
templates 10
Lexical Analysis on C++ 1
Templates and g++ 4
C++ Templates book 0
C++ Templates book 15
Copy string from 2D array to a 1D array in C 1
templates - why are the calls ambiguous? 1

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top