forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: allow handler to return a type without default constructor
Currently it is not possible because a type is instantiated before been deserialized. Fix that by allocating space for an object by using std::aligned_storage.
- Loading branch information
1 parent
7071239
commit 2e54725
Showing
1 changed file
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters