Re: type/value mismatch error in template
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