User Profile

Collapse

Profile Sidebar

Collapse
algatt
algatt
Last Activity: Jul 20 '07, 05:30 AM
Joined: Jul 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • algatt
    replied to Templates with Maps
    in C
    Yes, actually that was the problem I simply added typename before the map and it worked.

    Thanks...
    See more | Go to post

    Leave a comment:


  • algatt
    replied to Private Variable when using Classes
    in C
    Thanks a lot! It worked!...
    See more | Go to post

    Leave a comment:


  • algatt
    started a topic Private Variable when using Classes
    in C

    Private Variable when using Classes

    Hello,

    I have a header file with the following class :
    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
    now, when in my c file I try to create this class using:
    ...
    See more | Go to post

  • algatt
    started a topic Templates with Maps
    in C

    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_()
    ...
    See more | Go to post

  • 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
    //
    //
    ...
    See more | Go to post
No activity results to display
Show More
Working...