Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3e3ee581
Commit
3e3ee581
authored
May 31, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Path: add `constexpr`
parent
0e8ca449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Path.hxx
src/fs/Path.hxx
+3
-5
No files found.
src/fs/Path.hxx
View file @
3e3ee581
...
...
@@ -72,7 +72,7 @@ public:
* Check if this is a "nulled" instance. A "nulled" instance
* must not be used.
*/
bool
IsNull
()
const
noexcept
{
constexpr
bool
IsNull
()
const
noexcept
{
return
Base
::
IsNull
();
}
...
...
@@ -101,8 +101,7 @@ public:
* pointer is invalidated whenever the value of life of this
* instance ends.
*/
gcc_pure
const_pointer_type
c_str
()
const
noexcept
{
constexpr
const_pointer_type
c_str
()
const
noexcept
{
return
Base
::
c_str
();
}
...
...
@@ -110,8 +109,7 @@ public:
* Returns a pointer to the raw value, not necessarily
* null-terminated.
*/
gcc_pure
const_pointer_type
data
()
const
noexcept
{
constexpr
const_pointer_type
data
()
const
noexcept
{
return
c_str
();
}
...
...
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