Created
May 30, 2013 19:05
-
-
Save stepancheg/5680287 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <string.h> | |
template <typename T> | |
void MoveObjFromBuffer222(char* data, size_t size) { | |
char* buf = new char[size]; | |
delete[] buf; | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
getpid(); | |
} | |
struct T {}; | |
int main(int argc, char** argv) { | |
MoveObjFromBuffer222<T>(0, 0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment