Kstars

nan.h
1 /*
2  SPDX-FileCopyrightText: 2013 Akarsh Simha <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <limits>
10 
11 // The way of doing this in C++ 11. Leaving it here for future purposes.
12 #if 0
13 namespace NaN
14 {
15 constexpr double d = std::numeric_limits::quiet_NaN();
16 constexpr float f = std::numeric_limits<float>::quiet_NaN();
17 constexpr long double ld = std::numeric_limits<long double>::quiet_NaN();
18 }
19 #endif
20 
21 namespace NaN
22 {
23 const double d = std::numeric_limits<double>::quiet_NaN();
24 const float f = std::numeric_limits<float>::quiet_NaN();
25 const long double ld = std::numeric_limits<long double>::quiet_NaN();
26 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.