mirror of https://github.com/CGAL/cgal
In a class, we should using "static" functions
This commit is contained in:
parent
f532cbc013
commit
ff79502a72
|
|
@ -67,7 +67,7 @@ private:
|
||||||
|
|
||||||
#ifdef CGAL_HEADER_ONLY
|
#ifdef CGAL_HEADER_ONLY
|
||||||
|
|
||||||
inline static State& get_static_state()
|
static State& get_static_state()
|
||||||
{
|
{
|
||||||
static State state_;
|
static State state_;
|
||||||
return state_;
|
return state_;
|
||||||
|
|
@ -76,7 +76,7 @@ private:
|
||||||
#else // CGAL_HEADER_ONLY
|
#else // CGAL_HEADER_ONLY
|
||||||
|
|
||||||
CGAL_EXPORT static State state_;
|
CGAL_EXPORT static State state_;
|
||||||
inline static State& get_static_state()
|
static State& get_static_state()
|
||||||
{
|
{
|
||||||
return state_;
|
return state_;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ private:
|
||||||
bool running;
|
bool running;
|
||||||
|
|
||||||
#ifdef CGAL_HEADER_ONLY
|
#ifdef CGAL_HEADER_ONLY
|
||||||
inline bool& get_static_realtimer_m_failed()
|
static bool& get_static_realtimer_m_failed()
|
||||||
{
|
{
|
||||||
static bool m_failed = false;
|
static bool m_failed = false;
|
||||||
return m_failed;
|
return m_failed;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue