Thread: Template object creation problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    32

    Template object creation problem

    hi
    i wnt to create a template object which takes templates as arguments .

    The below code gives me error
    Code:
    length_type nrange = 4;
    typedef Convolution<vsip::Vector,nonsym,support_full> con; 
    Vector<value_type> ran(nrange);
    con c(ran,Domain<1>(nrange));
    The following code compiles(Instead of passing object ,i pass the Vector<value_type)
    Code:
    length_type nrange = 4;
    typedef Convolution<vsip::Vector,nonsym,support_full> con; 
    con c(Vector<value_type>,Domain<1>(nrange));
    how do i create a object of con.
    Last edited by babu198649; 09-14-2008 at 03:56 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Specialising a member function with a template template parameter
    By the4thamigo_uk in forum C++ Programming
    Replies: 10
    Last Post: 10-12-2007, 04:37 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. template class default constructor problem
    By kocika73 in forum C++ Programming
    Replies: 3
    Last Post: 04-22-2006, 09:42 PM
  4. Linked list with two class types within template.
    By SilasP in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2002, 06:13 AM
  5. oh me oh my hash maps up the wazoo
    By DarkDays in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 12:54 PM