forcing a compile time error
From: Michael Gaab (mike-g_at_montana.com)
Date: 11/08/03
- Next message: Ivan Vecerina: "Re: Novice Question: Good example on use of Non-type template parameters?"
- Previous message: Julián Albo: "Re: Novice Question: Good example on use of Non-type template parameters?"
- Next in thread: Severin Ecker: "Re: forcing a compile time error"
- Reply: Severin Ecker: "Re: forcing a compile time error"
- Reply: Jack Adam: "Re: forcing a compile time error"
- Reply: lilburne: "Re: forcing a compile time error"
- Reply: Gianni Mariani: "Re: forcing a compile time error"
- Reply: NFish: "Re: forcing a compile time error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 8 Nov 2003 09:40:07 -0600
How would I force the compiler to throw an error for the following:
function signature -
void foo(short);
function call -
foo('d');
My compiler does not complain when I call foo() with a character argument.
I am assuming that the compiler does some type casting or that char's are
interpreted as a byte. Not exactly sure.
At any rate how do I force the compiler throw a error?
thanks, Mike
- Next message: Ivan Vecerina: "Re: Novice Question: Good example on use of Non-type template parameters?"
- Previous message: Julián Albo: "Re: Novice Question: Good example on use of Non-type template parameters?"
- Next in thread: Severin Ecker: "Re: forcing a compile time error"
- Reply: Severin Ecker: "Re: forcing a compile time error"
- Reply: Jack Adam: "Re: forcing a compile time error"
- Reply: lilburne: "Re: forcing a compile time error"
- Reply: Gianni Mariani: "Re: forcing a compile time error"
- Reply: NFish: "Re: forcing a compile time error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|