Skip to content

Commit 55c0488

Browse files
committed
[doc] Minor update to coding style guide.
1 parent f0c6648 commit 55c0488

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

source-doc/styleguide.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,14 @@ POV-Ray is being developed with portability high in mind. In practice and at pre
4141
- _Static Thread-Local Template Members_: Template classes _must not_ have thread-local
4242
static member variables. See the @ref PooledSimpleVector template class for a viable
4343
workaround. [XCode 8 and later, apparently still unresolved as of 2018-04-08]
44-
- `std::floorf(float)`: This function _must not_ be used. Substitute `std::floor(float)`
45-
instead. [GCC, apparently all versions as of 2019-02-11]
46-
47-
- Source code should use the new features of C++11 with caution, as even some major compiler
48-
brands still have not achieved full compliance yet. The following constructs can be considered
49-
fair game though, as they are thought to provide significant benefit, and support by all major
50-
compiler brands seems to be mature by now:
51-
- Features "borrowed" from ISO/IEC 9899:1990 (aka C90, aka C89).
52-
- Features "borrowed" from ISO/IEC TR 19768:2007 (aka C++ Technical Report 1, aka TR1).
53-
- `decltype(v)`, with `v` being a simple variable or class member (as opposed to a more complex expression)
54-
- Range-based for loops (most notably the `for (auto&& i : v)` idiom to iterate over a vector).
55-
@note
56-
Other C++11 features will be added to the above list at the discretion of the dev team, or
57-
upon request if a reasonable case can be made in their favour. Note however that at present
58-
we will only consider features that have been properly supported by GCC as early as version
59-
4.8, by Clang as early as version 4.2, and by MSVC as early as internal version 19.0
60-
(Visual Studio 2015).
44+
- _Math Library Float Functions_: The `f`-suffixed variants of `<cmath>` library functions
45+
(e.g. `std::fabsf(float)`) _must not_ be used. The float overloads of the non-suffixed
46+
variants (e.g. `std::fabs(float)`) should be used instead. [GCC, all versions as of
47+
2019-02-11].
6148

6249
- Source code should avoid potential conflicts with later standard extensions to the C++ language,
63-
most notably ISO/IEC 14882:2014 (aka C++14) and the upcoming successor (aka C++17).
50+
most notably ISO/IEC 14882:2014 (aka C++14), ISO/IEC 14882:2017 (aka C++17) and the upcoming
51+
successor (aka C++20).
6452

6553
- While POV-Ray does require boost, we want to keep dependency on it to a minimum. The following are currently
6654
considered fair game:

0 commit comments

Comments
 (0)