Virtual method inlining720 (11/7/2012 9:49:38 AM) comp.lang.c++ I've heard of virtual method inlining in Java, and I'd like to know if the =
same is possible in C++. If so, in which cases is it applicable?
I ask because I'm learning Direct3D, and I want to know if it's ... s0suk3
How to bypass Visual C++ security cookies2145 (9/18/2012 2:23:40 AM) comp.lang.c++ Does anybody know how to bypass Visual C++ security cookies (generated by the /GS switch) in order to exploit a buffer overrun vulnerability in a program compiled with Visual C++?
... s0suk3
Verbosity when optimizing with rvalue references27115 (6/24/2010 3:23:23 PM) comp.lang.c++ The optimizations that rvalue references make possible are nice, but
I'm having one problem with them (rvalue refs): they sometimes lead to
too much verbosity.
When defining a constructor or a setter, you ... Sousuke
explicit auto_ptr<T>::auto_ptr(T*) ?1140 (3/15/2010 11:49:30 AM) comp.lang.c++ The constructor for auto_ptr which takes a T* is explicit, which is requiring me to create a temporary when passing a T* to a function that takes an auto_ptr (by value). Something like this: void f1(auto_ptr p... Sousuke
Up casting and down casting2210 (12/20/2009 2:53:52 AM) comp.lang.c++ How is up casting and down casting performed? Maybe it's an
implementation detail, but hopefully it's something that most
compilers implement in the same way. My first guess was that the
compiler places the ... Sosuke
How would you define an interface in C?522 (6/7/2009 5:55:58 AM) comp.lang.c Some time ago I came across this: http://developer.apple.com/documentation/CoreFoundation/Reference/CFAllocatorRef/Reference/reference.html It's an object that's created by specifying a generic pointer to use... s0suk3
Warning about constness (I think)731 (1/22/2009 12:27:33 PM) comp.lang.c gcc is displaying a warning that confuses me. The warning goes away if I cast the expression in the return statement in f() to a const- qualified type (in this case, to const char**): #include typedef struct... s0suk3
Storing setjmp()'s rv in a variable1528 (12/17/2008 6:31:42 AM) comp.lang.c I've read that the only two ways to use setjmp without invoking undefined behavior are - as the expression in an expression statement, - as part of the controlling expression in an if, switch, while, do, o... s0suk3
Benchmarks13435 (11/6/2008 3:53:18 PM) comp.lang.c The task: Write a program that reads a set of words from standard input and prints the number of distinct words. I came across a website that listed a few programs to accomplish this task: http://unthought.net... s0suk3
Accessing void * buffer/array through char * pointer1626 (9/6/2008 11:26:11 AM) comp.lang.c This code #include int main(void) { int hello[] =3D {'h', 'e', 'l', 'l', 'o'}; char *p =3D (void *) hello; for (size_t i =3D 0; i ", i, p[i]); if (!p[i]) printf(" (null char)... s0suk3
Conditional compilation #21133 (12/26/2012 2:00:05 PM) comp.lang.c++
Hello,
this is a rather platform specific issue that might however have a
general solution (I hope).
I need to perform a conditional compilation of a C++ source code
depending on which host I'm comp... gbe32241(75)
Compiler errors #21227 (11/19/2012 12:08:07 AM) comp.lang.c++ This are the errors I am getting from this source.
Can someone help me with this ?
Thanks,
Andy
// Disabler.cpp : Defines the entry point for the console application.
//
#include
// ... andrew_kennedy7(7)
Virtual method inlining720 (11/7/2012 9:49:38 AM) comp.lang.c++ I've heard of virtual method inlining in Java, and I'd like to know if the =
same is possible in C++. If so, in which cases is it applicable?
I ask because I'm learning Direct3D, and I want to know if it's ... s0suk3(372)
How to bypass Visual C++ security cookies2145 (9/18/2012 2:23:40 AM) comp.lang.c++ Does anybody know how to bypass Visual C++ security cookies (generated by the /GS switch) in order to exploit a buffer overrun vulnerability in a program compiled with Visual C++?
... s0suk3(372)
Array of pointer-to-functions3234 (9/16/2012 11:25:52 PM) comp.lang.c++ Hello,
Question: How do I create a n array of pointer - to - functions to be filled by a user?
My goal is to create the calculate function, which takes two values and passes them to a array of pointer-to-fu... ian.ewing(16)
casting from void*518 (9/11/2012 11:15:28 AM) comp.lang.c++ I have a structure like this (the actual structure is much bigger):
struct Generic {
char ID[6];
std::vector info1;
std::vector info2;
std::vector info3;
std::vector info4;
};
... cristiapi(11)
Microsoft abandons the C language386147 (8/23/2012 6:05:20 PM) comp.compilers.lcc This is a long story. It starts years ago since windows 3.1 and it ends
now, with "Metro".
SO, I downloaded windows 8, and installed it. That went fairly smoothly
but I forgot that windows doesn't come wi... jacob31(869)
Giving an rvalue ref to a function taking an rvalue ref1828 (8/20/2012 10:29:58 AM) comp.lang.c++ Suppose you have a function that takes an rvalue reference as parameter,
and from within it you want to call another function that likewise takes
one, but there's also a version of that function that takes a ... nospam270(2853)
Reuse of FILE Variable541 (8/18/2012 11:25:21 PM) comp.lang.c++ I'm curious about the best way to handle a file which is opened and
closed repeatedly throughout a program's execution. A file (FILE *pfv1)
is used to write one or more different files during the progra... mrc2323(170)
istringstream Conversion Question5108 (7/31/2010 9:32:25 PM) comp.lang.c++ I am using istringstring to convert data. For example,
int parseInt(string source, int start, int length)
{
int iResult;
if((start >= 0) && (start > iResult;
}
return iResult;
}
... mrc2323