Search:

Type: Posts; User: Axl

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,106

    Sure, this->p works without any harm. But you...

    Sure, this->p works without any harm.

    But you get in trouble with this->getP<double>() Just try it :)


    g++ -Wall template.cpp
    template.cpp: In member function ‘void Child<B>::member()’:...
  2. Replies
    6
    Views
    2,106

    Ok, I expanded my problem a bit and found a...

    Ok, I expanded my problem a bit and found a solution for it.
    The next problem was calling inherited member functions with templates.

    That's my solution (found in the library "loki"):


    ...
  3. Replies
    6
    Views
    2,106

    Thank you! :)

    Thank you! :)
  4. Replies
    8
    Views
    1,055

    If you have a dependency like this: just...

    If you have a dependency like this:



    just use your nomal "includes" at the beginning with appropriate precompiler "ifndefs" like you showed it before and take care of the linker.

    The linker...
  5. Replies
    6
    Views
    2,106

    Protected Members and Templated Inheritance

    Hi all,

    I am a bit confused about the following piece of code (as a reduced part of an other problem, also related to templates):


    template< const int A >
    class Base
    {
    public:
    inline...
Results 1 to 5 of 5