• 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: Ulrich Frotscher <email@hidden>
  • Date: Wed, 12 Oct 2005 21:13:19 +0200

Hi John,

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
//---------


Ulrich

On 12.10.2005, at 20:46, email@hidden wrote:

template <class T> int
RunningMedianTFP(T *dataP, IndexInt stride,IndexInt nstrides,IndexInt
num,int replaceMedianWithValue,T replacementValue,T replacementThreshold)
{
int i, err= 0;
IndexInt oldDataIndex;
T valueToRemove, valueToAdd;
T *p;
* typename vector<T>::iterator iter;
* pair<typename vector<T>::iterator, typename vector<T>::iterator> range;




_______________________________________________
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: There's something buggy in the XCode Cocoa documentation...
  • Next by Date: Re: type/value mismatch error in template
  • Previous by thread: Re: type/value mismatch error in template
  • Next by thread: Re: type/value mismatch error in template
  • Index(es):
    • Date
    • Thread