Search:

Type: Posts; User: einarp

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,052

    Tonto: Yes, I know that enum values are integers....

    Tonto: Yes, I know that enum values are integers.

    Daved: I want instances of the State class to be able to return enum values instead of the integers it stores.

    This is what I want to do (but...
  2. Replies
    5
    Views
    3,052

    Enums and Templates

    I am wondering if I can somehow return enum values from a method, using templates or otherwise. Here is an outline of what I want to do. The specific enums are declared outside the scope of the State...
  3. Replies
    10
    Views
    1,386

    That's the tie-breaker right there. Thanks a...

    That's the tie-breaker right there. Thanks a bunch. Not sure exactly what I did wrong the first time, but it works just the way I want it to now so that's it for me.
  4. Replies
    10
    Views
    1,386

    So if I all classes use each other directly and...

    So if I all classes use each other directly and not only via pointer or reference, the problem can't be solved?


    A minimum compilable example would include six files. And I think we have the...
  5. Replies
    10
    Views
    1,386

    I am indeed. As I wrote: "A.h includes B.h,...

    I am indeed.


    As I wrote: "A.h includes B.h, B.h includes C.h, and C.h includes A.h and B.h", where A = Schedule, B = Event and C = Task.

    Using a simple forward declaration:

    class Task;
    ...
  6. Replies
    10
    Views
    1,386

    Circular include issue

    How do I solve a circular header file include, where A.h includes B.h, B.h includes C.h, and C.h includes A.h and B.h? (There is one class in each file. And no, a forward declaration of C in B.h...
Results 1 to 6 of 6