it does not completely implement C++11 - in particular we are missing std::unique_ptr. use the deprecated std::auto_ptr for now git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@2334 e10b68d5-8a6e-419e-a041-bce267b0401d
27 lines
649 B
C++
27 lines
649 B
C++
// File: defs.h
|
|
// Author: Brian Vanderburg II
|
|
// Purpose: Definitions for ExprEval
|
|
//------------------------------------------------------------------------------
|
|
|
|
#ifndef __EXPREVAL_DEFS_H
|
|
#define __EXPREVAL_DEFS_H
|
|
|
|
namespace ExprEval
|
|
{
|
|
// constants
|
|
const double EXPREVAL_PI = 3.14159265358979323846;
|
|
const double EXPREVAL_E = 2.7182818284590452354;
|
|
|
|
} // namespace ExprEval
|
|
|
|
// CHANGED from original code: due to auto_ptr deprecation in c++0x
|
|
#if defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(__INTEL_COMPILER)
|
|
#define aptr(x) std::unique_ptr<x>
|
|
#else
|
|
#define aptr(x) std::auto_ptr<x>
|
|
#endif
|
|
|
|
|
|
#endif // __EXPREVAL_DEFS_H
|
|
|