Moved explicit template instantiation inside namespace.

Clang requires this to happen inside the namespace of the class
(which is in the anonymous namespace) and issues an error diagnostic.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-02-05 14:44:58 +01:00
parent 1513712e6b
commit 8ad4dd172f

View File

@ -575,6 +575,12 @@ private:
fortio_fclose) { }
};
// in order to get RTTI for this "class" (which is just a typedef), we must
// ask the compiler to explicitly instantiate it.
template struct EclipseHandle<ecl_sum_tstep_struct>;
} // anonymous namespace
// Note: the following parts were taken out of the anonymous
@ -662,10 +668,6 @@ private:
};
// in order to get RTTI for this "class" (which is just a typedef), we must
// ask the compiler to explicitly instantiate it.
template struct EclipseHandle<ecl_sum_tstep_struct>;
/**
* Summary variable that reports a characteristics of a well.
*/