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
eb94f409
Commit
eb94f409
authored
Mar 25, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protocol/Ack: perfect forwarding in the ProtocolError constructor
parent
93d91936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Ack.hxx
src/protocol/Ack.hxx
+3
-2
No files found.
src/protocol/Ack.hxx
View file @
eb94f409
...
...
@@ -48,8 +48,9 @@ class ProtocolError : public std::runtime_error {
enum
ack
code
;
public
:
ProtocolError
(
enum
ack
_code
,
const
char
*
msg
)
:
std
::
runtime_error
(
msg
),
code
(
_code
)
{}
template
<
typename
M
>
ProtocolError
(
enum
ack
_code
,
M
&&
msg
)
:
std
::
runtime_error
(
std
::
forward
<
M
>
(
msg
)),
code
(
_code
)
{}
enum
ack
GetCode
()
const
{
return
code
;
...
...
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