Click here to Skip to main content
15,795,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 8:56
raghunath sahoo15-Mar-13 8:56 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 9:34
professionalAlbert Holguin15-Mar-13 9:34 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 9:55
raghunath sahoo15-Mar-13 9:55 
GeneralRe: C++ Code to call a Rest Based Web Service API Pin
raghunath sahoo15-Mar-13 9:57
raghunath sahoo15-Mar-13 9:57 
AnswerRe: C++ Code to call a Rest Based Web Service API Pin
Albert Holguin15-Mar-13 10:32
professionalAlbert Holguin15-Mar-13 10:32 
QuestionVC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 5:45
Kosta Cherry15-Mar-13 5:45 
AnswerRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 7:01
Matthew Faithfull15-Mar-13 7:01 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 7:23
Kosta Cherry15-Mar-13 7:23 
Well, consider the following struct:
struct JustString: public std::string
{
};

It has the same size as just std::string, so no, there is no extra pointer in VFT. The question I have is about Empty Base Class Optimization - size of empty base class should be reduced to zero in descendant if possible. Yes, it is not a requirement, only a suggestion in a standard. Problem is, I don't understand this: it works for non-MS compilers; in MS-compiler it works for all cases EXCEPT std:string. I will check later with VC++ 2012 to see if they made it work, but right now I have no other explanation than some problems with MS compiler. Or is there any compiler option specifically for this case that I don't know about?
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Matthew Faithfull15-Mar-13 7:36
Matthew Faithfull15-Mar-13 7:36 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
David Crow15-Mar-13 8:34
David Crow15-Mar-13 8:34 
GeneralRe: VC++ and Empty Base Class Optimization problem/bug Pin
Kosta Cherry15-Mar-13 9:45
Kosta Cherry15-Mar-13 9:45 
AnswerRe: VC++ and Empty Base Class Optimization problem/bug Pin
jschell15-Mar-13 9:56
jschell15-Mar-13 9:56 
QuestionHow Can I set Noise In Image ? Pin
002comp14-Mar-13 20:25
002comp14-Mar-13 20:25 
AnswerRe: How Can I set Noise In Image ? Pin
Marco Bertschi14-Mar-13 23:21
professionalMarco Bertschi14-Mar-13 23:21 
AnswerRe: How Can I set Noise In Image ? Pin
nv316-Mar-13 3:16
nv316-Mar-13 3:16 
QuestiontimeGetTime() is unreliable on my computer too, not monotonic! Pin
Robert Inventor14-Mar-13 19:04
Robert Inventor14-Mar-13 19:04 
AnswerMessage Closed Pin
14-Mar-13 19:15
Robert Inventor14-Mar-13 19:15 
GeneralMessage Closed Pin
14-Mar-13 19:20
Robert Inventor14-Mar-13 19:20 
GeneralMessage Closed Pin
14-Mar-13 19:53
Robert Inventor14-Mar-13 19:53 
GeneralMessage Closed Pin
14-Mar-13 20:19
Robert Inventor14-Mar-13 20:19 
AnswerRe: timeGetTime() is unreliable on my computer too, not monotonic! Pin
Robert Inventor19-Mar-13 8:31
Robert Inventor19-Mar-13 8:31 
QuestionQueryPerformanceCounter inaccurate timing even with use of SetThreadAffinityMask Pin
Robert Inventor14-Mar-13 16:50
Robert Inventor14-Mar-13 16:50 
AnswerRe: QueryPerformanceCounter inaccurate timing even with use of SetThreadAffinityMask Pin
Robert Inventor14-Mar-13 19:07
Robert Inventor14-Mar-13 19:07 
GeneralRe: QueryPerformanceCounter inaccurate timing even with use of SetThreadAffinityMask Pin
dusty_dex15-Mar-13 1:24
dusty_dex15-Mar-13 1:24 
GeneralRe: QueryPerformanceCounter inaccurate timing even with use of SetThreadAffinityMask Pin
Robert Inventor18-Mar-13 15:44
Robert Inventor18-Mar-13 15:44 

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.