Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
dffc65d4
Commit
dffc65d4
authored
7 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: make token null constructor constexpr, noexcept
parent
2fde6c3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/db/IOstreams/token/token.H
+3
-3
3 additions, 3 deletions
src/OpenFOAM/db/IOstreams/token/token.H
src/OpenFOAM/db/IOstreams/token/tokenI.H
+1
-1
1 addition, 1 deletion
src/OpenFOAM/db/IOstreams/token/tokenI.H
with
4 additions
and
4 deletions
src/OpenFOAM/db/IOstreams/token/token.H
+
3
−
3
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
);
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/db/IOstreams/token/tokenI.H
+
1
−
1
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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment