Anon, thanks for the reply this is what I exactly needed.
Type: Posts; User: sanjivko
Anon, thanks for the reply this is what I exactly needed.
I would like to perform some operation on the variable depending on the type of variable.
For example:
writing a toString() implementation, that will convert the object into string...
Here is a code I wrote to check the type of a variable in run time. In this case I am trying to get the type info of a vector.
But when I run this program I get a cryptic string from which it...
ok .. I tried different l ways .Finally, I made the global declaration #define as follows
#define AVP_LENGTH_VALUE htonl(0x00FFFFFF)
It has something to do with compiler optimization, because if I omit -O2 from compilation, its through.
Even I tried with -O and -O1 same result. In older version of g++ 3.* I did not face this...
Please suggest how can I get rid of error in following code
-------klip---------------------
#include <iostream>
#include <map>
#include <time.h>
#include <netinet/in.h> // For sockaddr_in...
Small change in above code
#include <iostream>
using namespace std;
class A
{
public:
Hi,
I want to define a callback handler that can take different implementations in the class hierarchy.
Here is the way in which i tried to do , but get a compilation error
#include...
thanks, will try with that.
Following code gives a compilation error when compiled with g++
#include <map>
using namespace std;
class G
{