Yes, actually that was the problem I simply added typename before the map and it worked.
Thanks...
User Profile
Collapse
-
-
Private Variable when using Classes
Hello,
I have a header file with the following class :
now, when in my c file I try to create this class using:Code:template<class coord_t, size_t dim, class BTECOLL = BTE_COLLECTION > class PRtree { typedef AMI_STREAM<box_t> stream_t; private: MORE CLASSES HERE public: MORE CLASSES HERE
... -
Templates with Maps
So, I am trying to compile this file which has a template as follows:
...Code:using namespace std; template<class K, class T, class W> class AMI_cache_manager_static: public AMI_cache_manager_base { private: map<K,T> data_; size_t current_size; W writeout_; public: AMI_cache_manager_static(size_t capacity) : AMI_cache_manager_base(capacity, 0), writeout_() -
Expected constructor, destructor or type conversion before...
Hello, I am trying to compile the TPIE files but there is a file that's constantly giving errors about the templates. I am using gcc 3.4.5 on Eclipse using Windows XP. The following is the code of the file that I am trying to compile:
...Code:// Copyright (c) 1994 Darren Erik Vengroff // // File: ami_scan_mac.h // Author: Darren Erik Vengroff <dev@cs.duke.edu> // Created: 5/24/94 // //
No activity results to display
Show More
Leave a comment: