Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
61a8ad5c
Commit
61a8ad5c
authored
May 11, 2016
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove maybe<T> vestiges
parent
2d32e8b4
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
700 deletions
+6
-700
libcaf_core/caf/detail/invoke_result_visitor.hpp
libcaf_core/caf/detail/invoke_result_visitor.hpp
+1
-1
libcaf_core/caf/error.hpp
libcaf_core/caf/error.hpp
+4
-4
libcaf_core/caf/fwd.hpp
libcaf_core/caf/fwd.hpp
+0
-1
libcaf_core/caf/maybe.hpp
libcaf_core/caf/maybe.hpp
+0
-693
libcaf_core/caf/none.hpp
libcaf_core/caf/none.hpp
+1
-1
No files found.
libcaf_core/caf/detail/invoke_result_visitor.hpp
View file @
61a8ad5c
...
@@ -64,7 +64,7 @@ public:
...
@@ -64,7 +64,7 @@ public:
(
*
this
)(
empty_msg
);
(
*
this
)(
empty_msg
);
}
}
// unwrap
maybe
s
// unwrap
optional
s
template
<
class
T
>
template
<
class
T
>
void
operator
()(
optional
<
T
>&
x
)
{
void
operator
()(
optional
<
T
>&
x
)
{
if
(
x
)
if
(
x
)
...
...
libcaf_core/caf/error.hpp
View file @
61a8ad5c
...
@@ -40,10 +40,10 @@ namespace caf {
...
@@ -40,10 +40,10 @@ namespace caf {
/// # Design goals
/// # Design goals
///
///
/// The error type in CAF is meant to allow efficient packing of errors
/// The error type in CAF is meant to allow efficient packing of errors
///
in either `maybe` or on the wire. For this purpose, CAF limits the
///
on the wire. For this purpose, CAF limits the error code to 255 to allow
///
error code to 255 to allow storing the context size along the code
///
storing the context size along the code in a 32-bit integer (1 bit
/// in
a 32-bit integer (1 bit invaldity flag, 23 bit context size, 8 bit code;
/// in
valdity flag, 23 bit context size, 8 bit code; if the validity flag is 1,
///
if the validity flag is 1,
then the error is invalid and has no category).
/// then the error is invalid and has no category).
///
///
/// # Why not `std::error_code` or `std::error_condition`?
/// # Why not `std::error_code` or `std::error_condition`?
///
///
...
...
libcaf_core/caf/fwd.hpp
View file @
61a8ad5c
...
@@ -27,7 +27,6 @@ namespace caf {
...
@@ -27,7 +27,6 @@ namespace caf {
// -- 1 param templates --------------------------------------------------------
// -- 1 param templates --------------------------------------------------------
template
<
class
>
class
maybe
;
template
<
class
>
class
optional
;
template
<
class
>
class
optional
;
template
<
class
>
class
intrusive_ptr
;
template
<
class
>
class
intrusive_ptr
;
template
<
class
>
class
weak_intrusive_ptr
;
template
<
class
>
class
weak_intrusive_ptr
;
...
...
libcaf_core/caf/maybe.hpp
deleted
100644 → 0
View file @
2d32e8b4
This diff is collapsed.
Click to expand it.
libcaf_core/caf/none.hpp
View file @
61a8ad5c
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
namespace
caf
{
namespace
caf
{
/// Represents "nothing", e.g., for clearing a
`maybe
` by assigning `none`.
/// Represents "nothing", e.g., for clearing a
n `optional
` by assigning `none`.
struct
none_t
:
detail
::
comparable
<
none_t
>
{
struct
none_t
:
detail
::
comparable
<
none_t
>
{
constexpr
none_t
()
{
constexpr
none_t
()
{
// nop
// nop
...
...
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