Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jamal Dahbur
libcloudstorage
Commits
880659f1
Commit
880659f1
authored
Feb 14, 2018
by
Paweł Wegner
Browse files
IRequest: introduced callback factory method.
parent
4833cecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/IRequest.h
View file @
880659f1
...
...
@@ -230,6 +230,12 @@ class GenericCallback {
void
operator
()(
Arguments
...
d
)
const
{
functor_
->
done
(
d
...);
}
template
<
class
Callback
,
class
...
CallbackArguments
>
static
typename
IGenericCallback
<
Arguments
...
>::
Pointer
make
(
CallbackArguments
&&
...
args
)
{
return
std
::
make_shared
<
Callback
>
(
std
::
forward
<
CallbackArguments
>
(
args
)...);
}
private:
class
Functor
:
public
IGenericCallback
<
Arguments
...
>
{
public:
...
...
Write
Preview
Supports
Markdown
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