Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
f58cbda6
Commit
f58cbda6
authored
Feb 05, 2020
by
Frank Ueberschar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add override keyword to functions who override
parent
89eba08c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
include/pistache/async.h
include/pistache/async.h
+9
-9
include/pistache/http_defs.h
include/pistache/http_defs.h
+1
-1
include/pistache/mailbox.h
include/pistache/mailbox.h
+1
-1
include/pistache/router.h
include/pistache/router.h
+1
-1
include/pistache/stream.h
include/pistache/stream.h
+1
-1
No files found.
include/pistache/async.h
View file @
f58cbda6
...
...
@@ -47,7 +47,7 @@ namespace Async {
class
BadAnyCast
:
public
std
::
bad_cast
{
public:
virtual
const
char
*
what
()
const
noexcept
{
return
"Bad any cast"
;
}
virtual
const
char
*
what
()
const
noexcept
override
{
return
"Bad any cast"
;
}
virtual
~
BadAnyCast
()
{
}
};
...
...
@@ -378,11 +378,11 @@ namespace Async {
,
reject_
(
reject
)
{
}
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
finishResolve
(
resolve_
(
detail
::
tryMove
<
Resolve
>
(
core
->
value
())));
}
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
reject_
(
core
->
exc
);
for
(
const
auto
&
req
:
this
->
chain_
->
requests
)
{
req
->
reject
(
this
->
chain_
);
...
...
@@ -466,11 +466,11 @@ namespace Async {
"Incompatible types detected"
);
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
resolve_
(
core
->
value
());
}
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
reject_
(
core
->
exc
);
}
...
...
@@ -495,11 +495,11 @@ namespace Async {
static_assert
(
sizeof
...(
Args
)
==
0
,
"Can not attach a non-void continuation to a void-Promise"
);
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
void
>>&
/*core*/
)
{
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
void
>>&
/*core*/
)
override
{
resolve_
();
}
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
void
>>&
core
)
{
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
void
>>&
core
)
override
{
reject_
(
core
->
exc
);
}
...
...
@@ -531,12 +531,12 @@ namespace Async {
,
reject_
(
reject
)
{
}
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doResolve
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
auto
promise
=
resolve_
(
detail
::
tryMove
<
Resolve
>
(
core
->
value
()));
finishResolve
(
promise
);
}
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
{
void
doReject
(
const
std
::
shared_ptr
<
CoreT
<
T
>>&
core
)
override
{
reject_
(
core
->
exc
);
for
(
const
auto
&
req
:
core
->
requests
)
{
req
->
reject
(
core
);
...
...
include/pistache/http_defs.h
View file @
f58cbda6
...
...
@@ -215,7 +215,7 @@ struct HttpError : public std::exception {
~
HttpError
()
noexcept
{}
const
char
*
what
()
const
noexcept
{
return
reason_
.
c_str
();
}
const
char
*
what
()
const
noexcept
override
{
return
reason_
.
c_str
();
}
int
code
()
const
{
return
code_
;
}
std
::
string
reason
()
const
{
return
reason_
;
}
...
...
include/pistache/mailbox.h
View file @
f58cbda6
...
...
@@ -250,7 +250,7 @@ public:
}
}
Entry
*
pop
()
{
Entry
*
pop
()
override
{
auto
ret
=
Queue
<
T
>::
pop
();
if
(
isBound
())
{
...
...
include/pistache/router.h
View file @
f58cbda6
...
...
@@ -255,7 +255,7 @@ public:
*/
explicit
RouterHandler
(
std
::
shared_ptr
<
Rest
::
Router
>
router
);
void
onRequest
(
const
Http
::
Request
&
req
,
Http
::
ResponseWriter
response
);
void
onRequest
(
const
Http
::
Request
&
req
,
Http
::
ResponseWriter
response
)
override
;
private:
std
::
shared_ptr
<
Tcp
::
Handler
>
clone
()
const
final
{
...
...
include/pistache/stream.h
View file @
f58cbda6
...
...
@@ -168,7 +168,7 @@ public:
}
protected:
int_type
overflow
(
int_type
ch
);
int_type
overflow
(
int_type
ch
)
override
;
private:
void
reserve
(
size_t
size
);
...
...
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