Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ set_target_properties(system_context PROPERTIES
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF)
target_compile_options(system_context PUBLIC
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:__cplusplus /Zc:preprocessor>
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/Zc:__cplusplus /Zc:preprocessor /Zc:externConstexpr>
)
add_library(STDEXEC::system_context ALIAS system_context)
target_link_libraries(system_context PUBLIC stdexec)
Expand Down
11 changes: 8 additions & 3 deletions include/exec/__detail/__system_context_replaceability_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <memory>

namespace exec::system_context_replaceability {
using STDEXEC::system_context_replaceability::__parallel_scheduler_backend_factory;
using STDEXEC::system_context_replaceability::__parallel_scheduler_backend_factory_t;

/// Interface for the parallel scheduler backend.
using parallel_scheduler_backend [[deprecated(
Expand All @@ -40,15 +40,20 @@ namespace exec::system_context_replaceability {
return STDEXEC::system_context_replaceability::query_parallel_scheduler_backend();
}

STDEXEC_PRAGMA_PUSH()
STDEXEC_PRAGMA_IGNORE_GNU("-Wdeprecated-declarations")
STDEXEC_PRAGMA_IGNORE_MSVC(4996) // warning C4996: 'function': was declared deprecated
STDEXEC_PRAGMA_IGNORE_EDG(deprecated_entity)
/// Set a factory for the parallel scheduler backend.
/// Can be used to replace the parallel scheduler at runtime.
/// Out of spec.
[[deprecated(
"Use STDEXEC::system_context_replaceability::set_parallel_scheduler_backend instead.")]]
inline auto set_parallel_scheduler_backend(__parallel_scheduler_backend_factory __new_factory)
-> __parallel_scheduler_backend_factory {
inline auto set_parallel_scheduler_backend(__parallel_scheduler_backend_factory_t __new_factory)
-> __parallel_scheduler_backend_factory_t {
return STDEXEC::system_context_replaceability::set_parallel_scheduler_backend(__new_factory);
}
STDEXEC_PRAGMA_POP()

/// Interface for completing a sender operation. Backend will call frontend though this interface
/// for completing the `schedule` and `schedule_bulk` operations.
Expand Down
Loading
Loading