• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: type/value mismatch error in template
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: type/value mismatch error in template


  • Subject: Re: type/value mismatch error in template
  • From: John Weeks <email@hidden>
  • Date: Wed, 12 Oct 2005 13:41:35 -0700

Ulrich Frotscher says:


>I just created a XCode 2.1 project from scratch (C++ cmd line tool)
>and it builds without errors with the following source code. Could
>you possibly post a complete boiled down example that does not
>compile at your side?
>
>//---------
>#include <vector>
>
>using namespace std;
>
>typedef int IndexInt ;
>
>template <class T> int
>RunningMedianTFP( T *dataP
>                 , IndexInt stride
>                 , IndexInt nstrides
>                 , IndexInt num
>                 , int replaceMedianWithValue
>                 , T replacementValue
>                 , T replacementThreshold
>                 )
>{
>     T valueToRemove, valueToAdd;
>     T *p;
>     typename vector<T>::iterator iter;
>     pair< typename vector<T>::iterator
>         , typename vector<T>::iterator
>         > range;
>     return 1;
>}
>
>int main()
>{
>     int i;
>     return RunningMedianTFP(&i, 1,1,1,1,1,1);
>}
>//EOF
>//---------


Thanks, Ulrich.

I should have thought of this test; it's very helpful. I really did think
it should compile, it's good to know that it does.

Regards,
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax   (503) 620-6754
email   email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Symbol coloring in XCode?
  • Next by Date: Re: Symbol coloring in XCode?
  • Previous by thread: Re: type/value mismatch error in template
  • Next by thread: Re: type/value mismatch error in template
  • Index(es):
    • Date
    • Thread