[no subject]
- From: ArbolOne <arbolone gmail com>
- To: gtkmm-list gnome org
- Subject:
- Date: Sat, 29 Sep 2012 10:02:14 -0400
Sorry, I know that this is not a gtkmm code, but I need to plug a template similar to this one in my gtkmm program, and for some reason it will not compile. I just might be that I tired, but I cannot see anything wrong in this code.
template <class T> class Data{
private:
T data;
public:
Data();
Data(T);
virtual ~Data();
};
template <class T>
jme::Data<T>::Data() {}
template <class T>
jme::Data<T>::Data(T _data) {
this->data = "">}
template <class T>
jme::Data<T>::~Data() {}
.............
using namespace std;
int main() {
jme::Data<int> d(1); // this does not work
jme::Data<int> d; // this does not work
cout << "Hello world!" << endl;
return 0;
}
--
Happiness has many doors, and when one of them closes another opens, yet we spent so much time looking at the one that just closed that we don't see the one that just opened..
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]