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
17316327
Commit
17316327
authored
Apr 06, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration/1246'
parents
b34f70a1
e46dd349
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CHANGELOG.md
CHANGELOG.md
+10
-0
libcaf_core/caf/result.hpp
libcaf_core/caf/result.hpp
+3
-1
No files found.
CHANGELOG.md
View file @
17316327
...
...
@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file. The format
is based on
[
Keep a Changelog
](
https://keepachangelog.com
)
.
## [Unreleased]
### Fixed
-
For types that offer implicit type conversion, trying to construct a
`result<T>`
could result in ambiguity since compilers could construct either
`T`
itself or
`expected<T>`
for calling a constructor of
`result<T>`
. To fix
the ambiguity,
`result<T>`
now accepts any type that allows constructing a
`T`
internally without requiring a type conversion to
`T`
as an argument (#1245).
## [0.18.2] - 2021-03-26
### Added
...
...
libcaf_core/caf/result.hpp
View file @
17316327
...
...
@@ -184,7 +184,9 @@ public:
using
super
::
super
;
result
(
T
x
)
:
super
(
detail
::
result_base_message_init
{},
std
::
move
(
x
))
{
template
<
class
U
,
class
=
std
::
enable_if_t
<
std
::
is_constructible_v
<
T
,
U
>
>>
result
(
U
&&
x
)
:
super
(
detail
::
result_base_message_init
{},
T
{
std
::
forward
<
U
>
(
x
)})
{
// 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