Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
dffc65d4
Commit
dffc65d4
authored
Apr 25, 2018
by
Mark Olesen
Browse files
STYLE: make token null constructor constexpr, noexcept
parent
2fde6c3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOstreams/token/token.H
View file @
dffc65d4
...
...
@@ -55,7 +55,7 @@ SourceFiles
namespace
Foam
{
// Forward declaration
of friend functions and operator
s
// Forward declarations
class
token
;
...
...
@@ -76,7 +76,7 @@ public:
// the maximum number of types is limited to 30.
enum
tokenType
{
UNDEFINED
,
//!< An undefined token-type
UNDEFINED
=
0
,
//!< An undefined token-type
// Fundamental types
FLAG
,
//!< stream flag (1-byte bitmask)
...
...
@@ -303,7 +303,7 @@ public:
// Constructors
//- Construct null
inline
token
()
;
inline
constexpr
token
()
noexcept
;
//- Copy construct
inline
token
(
const
token
&
t
);
...
...
src/OpenFOAM/db/IOstreams/token/tokenI.H
View file @
dffc65d4
...
...
@@ -118,7 +118,7 @@ inline void Foam::token::clear()
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
inline
Foam
::
token
::
token
()
inline
constexpr
Foam
::
token
::
token
()
noexcept
:
data_
(),
// bit-wise zero for union content
type_
(
tokenType
::
UNDEFINED
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment