Search:

Type: Posts; User: Zach L.

Search: Search took 0.03 seconds.

  1. Replies
    30
    Views
    15,466

    Well, in this example, obviously, the solution is...

    Well, in this example, obviously, the solution is not to use a function or a macro, but simply type (a + b) where you need it. But, in the concatenation example I was talking about, notice that the...
  2. Replies
    30
    Views
    15,466

    >> And there are no specializations in this case....

    >> And there are no specializations in this case. <<
    Concatenating two C-strings? That seems like it might be a reasonable specialization. You are also excluding user (or library) defined data types...
  3. Replies
    30
    Views
    15,466

    Why on earth would you use a macro for that? -...

    Why on earth would you use a macro for that?
    - You can't specialize macros like you can templates.
    - If you end up with a bug in your macro, it could be very hard to figure out.
    - You lose...
  4. Replies
    30
    Views
    15,466

    They can be really powerful if used well (not...

    They can be really powerful if used well (not many people do use them really well, though). Besides, the idea of template meta-programming is really cool.
  5. Replies
    30
    Views
    15,466

    This is a silly argument! Besides, we all know...

    This is a silly argument!
    Besides, we all know COBOL is the superior language.



    :D
Results 1 to 5 of 5