Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConverting calloc to new. Pin
BubbaGeeNH27-Jan-10 10:15
BubbaGeeNH27-Jan-10 10:15 
AnswerRe: Converting calloc to new. Pin
Chris Losinger27-Jan-10 10:27
professionalChris Losinger27-Jan-10 10:27 
GeneralRe: Converting calloc to new. Pin
Nemanja Trifunovic27-Jan-10 11:06
Nemanja Trifunovic27-Jan-10 11:06 
GeneralRe: Converting calloc to new. Pin
Chris Losinger27-Jan-10 11:09
professionalChris Losinger27-Jan-10 11:09 
AnswerRe: Converting calloc to new. Pin
Nemanja Trifunovic27-Jan-10 11:14
Nemanja Trifunovic27-Jan-10 11:14 
QuestionUnsigned Template Parameter [Solved] Pin
Skippums27-Jan-10 9:04
Skippums27-Jan-10 9:04 
AnswerRe: Unsigned Template Parameter Pin
Richard Andrew x6427-Jan-10 9:20
professionalRichard Andrew x6427-Jan-10 9:20 
GeneralRe: Unsigned Template Parameter Pin
Emilio Garavaglia27-Jan-10 9:43
Emilio Garavaglia27-Jan-10 9:43 
That's a never ending discussion that happened inside the standardization commetee.

Your appoint appears correct but is in contrast with SFINAE (Substitution Failure Is Not An Error), that requires errors to be notified only at instantiation.
Otherwise expression like a+b will be subjected to your cnsideration if a and b ar FooBar-s and there is no operator+ for FooBar.

But we all can write
template<class A>
A add(const A& a, const A& b) { return a+b; }

and get errors only upon attempting an instantiation of A with no operator+ available.
The point, here is that the standard does not consider the word unsigned as an adjective to something, but defines "unsigned int", as well as "unsigned long" etc. as type names themselves.


2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: Unsigned Template Parameter Pin
Skippums27-Jan-10 10:10
Skippums27-Jan-10 10:10 
Questioncompile a class Pin
mathy27-Jan-10 8:28
mathy27-Jan-10 8:28 
AnswerRe: compile a class Pin
Rajesh R Subramanian27-Jan-10 8:52
professionalRajesh R Subramanian27-Jan-10 8:52 
AnswerRe: compile a class Pin
loyal ginger27-Jan-10 8:53
loyal ginger27-Jan-10 8:53 
QuestionRe: compile a class Pin
mathy27-Jan-10 21:30
mathy27-Jan-10 21:30 
AnswerRe: compile a class Pin
loyal ginger28-Jan-10 1:43
loyal ginger28-Jan-10 1:43 
AnswerRe: compile a class Pin
CPallini27-Jan-10 11:00
mveCPallini27-Jan-10 11:00 
QuestionDLL "organization" ? Pin
Vaclav_27-Jan-10 7:13
Vaclav_27-Jan-10 7:13 
AnswerRe: DLL "organization" ? Pin
Richard MacCutchan27-Jan-10 9:24
mveRichard MacCutchan27-Jan-10 9:24 
QuestionNumeric Template Error C2296 Pin
Skippums27-Jan-10 6:51
Skippums27-Jan-10 6:51 
AnswerRe: Numeric Template Error C2296 Pin
Richard MacCutchan27-Jan-10 9:14
mveRichard MacCutchan27-Jan-10 9:14 
GeneralRe: Numeric Template Error C2296 Pin
Skippums27-Jan-10 10:15
Skippums27-Jan-10 10:15 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan27-Jan-10 22:00
mveRichard MacCutchan27-Jan-10 22:00 
GeneralRe: Numeric Template Error C2296 Pin
Skippums28-Jan-10 3:49
Skippums28-Jan-10 3:49 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jan-10 5:16
mveRichard MacCutchan28-Jan-10 5:16 
GeneralRe: Numeric Template Error C2296 Pin
Ken Moynihan28-Jun-10 16:41
Ken Moynihan28-Jun-10 16:41 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jun-10 21:29
mveRichard MacCutchan28-Jun-10 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.