Click here to Skip to main content
15,917,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: size from the childframe border Pin
Antony M Kancidrowski19-Jan-05 3:39
Antony M Kancidrowski19-Jan-05 3:39 
GeneralRe: size from the childframe border Pin
Roger Allen19-Jan-05 4:04
Roger Allen19-Jan-05 4:04 
QuestionSetup HyperTerminal ?? Pin
Kabashiro19-Jan-05 1:26
Kabashiro19-Jan-05 1:26 
AnswerRe: Setup HyperTerminal ?? Pin
Antony M Kancidrowski19-Jan-05 3:43
Antony M Kancidrowski19-Jan-05 3:43 
GeneralMy bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 1:19
Emilio Garavaglia19-Jan-05 1:19 
GeneralRe: My bug or C++ bug Pin
Antony M Kancidrowski19-Jan-05 3:53
Antony M Kancidrowski19-Jan-05 3:53 
GeneralRe: My bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 4:22
Emilio Garavaglia19-Jan-05 4:22 
GeneralRe: My bug or C++ bug Pin
John R. Shaw19-Jan-05 9:39
John R. Shaw19-Jan-05 9:39 
emilio_grv wrote:
My bug or C++ bug

Neither: I think it is a compiler optimization/inlining bug.

There is a recurring pattern that is used in most books on the subject and what you are seeing might be why.

I would try the following:
template<class A, class B>
A operator&(const A& a, const B& b)
{  A tmp(a); return( tmp&=b ); }

OR
template<class A, class B>
A operator&(const A& a, const B& b)
{  A tmp(a); tmp&=b; return tmp; }


Hopefully one or both of these will solve the problem, since they provide more than enough information for the compiler to get it right.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: My bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 20:59
Emilio Garavaglia19-Jan-05 20:59 
GeneralRe: My bug or C++ bug Pin
John R. Shaw29-Jan-05 11:07
John R. Shaw29-Jan-05 11:07 
GeneralAlter the dimensions of a metafile Pin
Dimitris Vikeloudas19-Jan-05 0:46
Dimitris Vikeloudas19-Jan-05 0:46 
GeneralRe: Alter the dimensions of a metafile Pin
Shog919-Jan-05 8:53
sitebuilderShog919-Jan-05 8:53 
Generalerror LNK2019: unresolved external symbol &quot;public: __thiscall Pin
aj168219-Jan-05 0:44
aj168219-Jan-05 0:44 
GeneralRe: error LNK2019: unresolved external symbol &quot;public: __thiscall Pin
rrrado19-Jan-05 0:56
rrrado19-Jan-05 0:56 
GeneralScroll messages from IE Pin
Filomela18-Jan-05 23:32
Filomela18-Jan-05 23:32 
GeneralRe: Scroll messages from IE Pin
rrrado19-Jan-05 0:29
rrrado19-Jan-05 0:29 
GeneralUsing Performance Graph... Pin
utkumanyaksalak18-Jan-05 23:27
utkumanyaksalak18-Jan-05 23:27 
GeneralWave Format Transforming Question Pin
IsaacLitingjun18-Jan-05 22:56
IsaacLitingjun18-Jan-05 22:56 
Generaldouble buffering on a mfc dialog with CTreeCtrl as content Pin
neosun18-Jan-05 22:42
neosun18-Jan-05 22:42 
GeneralRe: double buffering on a mfc dialog with CTreeCtrl as content Pin
Martin Koorts19-Jan-05 6:30
Martin Koorts19-Jan-05 6:30 
GeneralRe: double buffering on a mfc dialog with CTreeCtrl as content Pin
Shog919-Jan-05 8:51
sitebuilderShog919-Jan-05 8:51 
GeneralForwared Calls Pin
Maxime Labelle18-Jan-05 22:41
Maxime Labelle18-Jan-05 22:41 
Generalodbc, dao, oledb, ado database question ! Pin
Anonymous18-Jan-05 22:28
Anonymous18-Jan-05 22:28 
GeneralRe: odbc, dao, oledb, ado database question ! Pin
IsaacLitingjun18-Jan-05 22:55
IsaacLitingjun18-Jan-05 22:55 
GeneralRe: odbc, dao, oledb, ado database question ! Pin
Anonymous19-Jan-05 0:07
Anonymous19-Jan-05 0:07 

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.