Search:

Type: Posts; User: iMalc

Search: Search took 0.04 seconds.

  1. Replies
    24
    Views
    7,198

    I think this has already been somewhat covered....

    I think this has already been somewhat covered. You need to provide arguments that are the same type to ?:
  2. Replies
    24
    Views
    7,198

    Yeah I guess it is. I had another class which...

    Yeah I guess it is. I had another class which made heavy use of the conversions because it needed to, and leaving them implicit seemed tidier in that case.
    In this case though, I should have used...
  3. Replies
    24
    Views
    7,198

    Aw nuts, I forgot the #ifdef DEBUG part around...

    Aw nuts, I forgot the #ifdef DEBUG part around the constructor initialisation list of the default constructor.
  4. Replies
    24
    Views
    7,198

    Something like this: #ifndef NANFLOAT_H #define...

    Something like this:
    #ifndef NANFLOAT_H
    #define NANFLOAT_H

    #include <cmath>
    #include <iostream>

    template<typename T> class nanInit {
    T value;
  5. Replies
    24
    Views
    7,198

    I have the guts of a lightweight class that...

    I have the guts of a lightweight class that implements exactly enough to do this kind of thing already. I could have this made in about 10 minutes after work today. Might post back in about 10 hours...
Results 1 to 5 of 5