Fabio's notes
Some notes (mainly linux related)
Monday, August 13, 2012
stream to a pointer
#include <iostream>
#include <sstream>
using namespace std;
struct A{
};
int main(){
A a;
stringstream ss;
ss<<&a;
A* ap;
void* vap;
ss>>vap;
}
ss>>vap is ok, ss>>ap is not.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment