COMP: drop construct Field from SubField for non-Intel

- duplicates existing SubField -> Field conversion method
- retain for Intel until we confirm it works there too
This commit is contained in:
Mark Olesen
2010-12-17 15:46:56 +01:00
parent 9224daad7b
commit 97517208ad
2 changed files with 4 additions and 3 deletions

View File

@ -166,8 +166,7 @@ Foam::Field<Type>::Field(const Xfer<Field<Type> >& f)
{}
#ifndef __GNUC__
// Not needed for clang/gcc
#ifdef __INTEL_COMPILER
template<class Type>
Foam::Field<Type>::Field(const typename Field<Type>::subField& sf)
:

View File

@ -176,8 +176,10 @@ public:
//- Construct by transferring the Field contents
Field(const Xfer<Field<Type> >&);
#ifdef __INTEL_COMPILER
//- Construct as copy of subField
Field(const typename Field<Type>::subField&);
#endif
//- Construct as copy of tmp<Field>
# ifdef ConstructFromTmp
@ -188,7 +190,7 @@ public:
Field(Istream&);
//- Construct from a dictionary entry
Field(const word& keyword, const dictionary& dict, const label size);
Field(const word& keyword, const dictionary&, const label size);
//- Clone
tmp<Field<Type> > clone() const;