Overview
Comment:Use std::pow instead of pow to avoid pow double/Complex ambiguity error.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 3be1191cabe5565536935eae458a2af9f40a09a7ef6d62d2e3fe5661216df2c1
User & Date: geraint@users.sourceforge.net on 2003-09-13 22:26:39
Other Links: branch diff | manifest | tags
Context
2003-09-14
22:31:45
Replaced ^ with pow (required for -cc and -oct). check-in: 172e593759 user: geraint@users.sourceforge.net tags: origin/master, trunk
2003-09-13
22:26:39
Use std::pow instead of pow to avoid pow double/Complex ambiguity error. check-in: 3be1191cab user: geraint@users.sourceforge.net tags: origin/master, trunk
2003-09-07
20:41:19
*** empty log message *** check-in: 506ccdf590 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/cc/include/useful-functions.hh from [f0062089cf] to [681ea58964].

16
17
18
19
20
21
22

23
24
25
26
27
28
29
/*
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
*/
#else
#define cast_to_double	static_cast<double>

#endif /* ! __cplusplus */

static inline double
max (const double x1, const double x2)
{
  return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0);
}







>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
*/
#else
#define cast_to_double	static_cast<double>
using std::pow;
#endif /* ! __cplusplus */

static inline double
max (const double x1, const double x2)
{
  return cast_to_double ((x1 >= x2) ? x1 : (x1 < x2) ? x2 : 0);
}


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]