Search:

Type: Posts; User: sanjivko

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    7,275

    Anon, thanks for the reply this is what I exactly...

    Anon, thanks for the reply this is what I exactly needed.
  2. Replies
    8
    Views
    7,275

    I would like to perform some operation on the...

    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...
  3. Replies
    8
    Views
    7,275

    Typeid of vectors

    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...
  4. Replies
    5
    Views
    2,286

    ok .. I tried different l ways .Finally, I made...

    ok .. I tried different l ways .Finally, I made the global declaration #define as follows



    #define AVP_LENGTH_VALUE htonl(0x00FFFFFF)
  5. Replies
    5
    Views
    2,286

    It has something to do with compiler...

    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...
  6. Replies
    5
    Views
    2,286

    Compilation error with -O2 option in g++

    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...
  7. Small change in above code #include...

    Small change in above code



    #include <iostream>
    using namespace std;

    class A
    {
    public:
  8. Function Callback, passing different class members

    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...
  9. Replies
    2
    Views
    2,771

    thanks, will try with that.

    thanks, will try with that.
  10. Replies
    2
    Views
    2,771

    Map default Value compilation error in g++

    Following code gives a compilation error when compiled with g++



    #include <map>

    using namespace std;

    class G
    {
Results 1 to 10 of 10