Search:

Type: Posts; User: Cristian Negres

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,292

    Hi, Thank you for your help. BR, Cristian

    Hi,

    Thank you for your help.

    BR,
    Cristian
  2. Replies
    10
    Views
    1,292

    pointer state, how to test?

    Hello,

    An object passes a pointer as a parameter to a function call.

    Is there a was to find if the memory was freed by the calling function and the pointer is not valid?

    BR,
    Cristian
  3. Replies
    0
    Views
    1,477

    How to switch a a CORBA:Ushort?

    Hello,

    I make a swich after a variable of type CORBA::Ushort. The gcc flags that it cannot reduce the type to an int an aborts the compilation.



    Is there a mapping between the CORBA types...
  4. Hi, My view was that const just speaks about...

    Hi,

    My view was that const just speaks about what the function does and const type indicates how the result behaves. Now it's ok.

    Thank you.
  5. Hi, The function tries to return a reference...

    Hi,

    The function tries to return a reference to the "number" variable.

    The code I have posted is just an example of the problem I have. The real code should take a reference to the variable.
    ...
  6. type & getReference() const doesn't work.

    The following code doesn't compile with gcc 2.96 for linux.
    The error I receive is :

    ../src/text.cxx: In method 'int & Base::getNumber() const':
    ../src/text.cxx:line7: could not convert...
  7. OK, I may be saying a stupid thing as I didn't...

    OK, I may be saying a stupid thing as I didn't worked with multiple inheritance but here it is:
    Base
    / | \
    Derived1 - Derived2 Derived3

    This...
  8. Hi, Thanks Prelude and skipper. I agree with...

    Hi,

    Thanks Prelude and skipper.
    I agree with you and I made the same proposition to my colleagues before: to have one class with a extra member "name": the reason the design was that they want to...
  9. Brainstorming: How to design this issue?

    Hi,

    I have a class Base and many Derived classes. All the Derived are identical (the same data members and functions) just the name differs Derived1, Derived2, etc.

    Now the problem is that I...
  10. Replies
    2
    Views
    809

    casting

    Sorry for not being clear,

    Derived1 and Derived2 are identical, I receive a message Base* I know is Derived1*.
    Could I cast the message to Derived2?

    Cristian
  11. Replies
    2
    Views
    809

    casting

    Hello,

    I have a type Base and two identical types DerivedOne and DerivedTwo that are derived from Base.

    I receive a Base * I know is a DerivedOne*.
    Could I cast from DerivedOne* to DerivedTwo?...
Results 1 to 11 of 11