I think this has already been somewhat covered. You need to provide arguments that are the same type to ?:
Type: Posts; User: iMalc
I think this has already been somewhat covered. You need to provide arguments that are the same type to ?:
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...
Aw nuts, I forgot the #ifdef DEBUG part around the constructor initialisation list of the default constructor.
Something like this:
#ifndef NANFLOAT_H
#define NANFLOAT_H
#include <cmath>
#include <iostream>
template<typename T> class nanInit {
T value;
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...