mirror of
https://github.com/Naios/continuable.git
synced 2026-01-01 03:12:12 +08:00
Make the old error and dispatch tag not throw deprecation warnings for now
This commit is contained in:
parent
057fb37123
commit
815c3d71b9
@ -73,7 +73,7 @@ namespace cti {
|
||||
/// for whether it resolves the callback instantly with its arguments
|
||||
/// without having side effects.
|
||||
///
|
||||
/// \since 4.0.0
|
||||
/// \since 3.1.0
|
||||
struct is_ready_arg_t {};
|
||||
|
||||
/// Represents the tag type that is used to query the continuation
|
||||
@ -81,7 +81,7 @@ struct is_ready_arg_t {};
|
||||
/// without having side effects.
|
||||
/// It's required that the query of is_ready_arg_t returns true.
|
||||
///
|
||||
/// \since 4.0.0
|
||||
/// \since 3.1.0
|
||||
struct get_arg_t {};
|
||||
|
||||
/// Represents the tag type that is used to disambiguate the
|
||||
@ -89,7 +89,7 @@ struct get_arg_t {};
|
||||
///
|
||||
/// \note see continuable::next for details.
|
||||
///
|
||||
/// \since 4.0.0
|
||||
/// \since 3.1.0
|
||||
struct exception_arg_t {};
|
||||
|
||||
/// \copydoc exception_arg_t
|
||||
@ -98,8 +98,8 @@ struct exception_arg_t {};
|
||||
/// to the types specified in the "A Unified Future" proposal
|
||||
/// especially regarding naming types similar.
|
||||
///
|
||||
[[deprecated("The dispatch_error_tag was replaced by exception_arg_t and will "
|
||||
"be removed in a later major version!")]] //
|
||||
// [[deprecated("The dispatch_error_tag was replaced by exception_arg_t and
|
||||
// "will be removed in a later major version!")]]
|
||||
typedef exception_arg_t dispatch_error_tag;
|
||||
|
||||
/// Represents the type that is used as exception type
|
||||
@ -110,7 +110,7 @@ typedef exception_arg_t dispatch_error_tag;
|
||||
/// A custom error type may be set through
|
||||
/// defining `CONTINUABLE_WITH_CUSTOM_ERROR_TYPE`.
|
||||
///
|
||||
/// \since 4.0.0
|
||||
/// \since 3.1.0
|
||||
using exception_t = detail::types::exception_t;
|
||||
|
||||
/// \copydoc exception_t
|
||||
@ -119,8 +119,8 @@ using exception_t = detail::types::exception_t;
|
||||
/// to the types specified in the "A Unified Future" proposal
|
||||
/// especially regarding naming types similar.
|
||||
///
|
||||
[[deprecated("The error_type was replaced by exception_t and will "
|
||||
"be removed in a later major version!")]] //
|
||||
// [[deprecated("The error_type was replaced by exception_t and "
|
||||
// "will be removed in a later major version!")]] //
|
||||
typedef exception_t error_type;
|
||||
/// \}
|
||||
} // namespace cti
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user