Skip to content

Commit

Permalink
move v1::async_scope into inline v1 namespace
Browse files Browse the repository at this point in the history
* `v1::async_scope` becomes `unifex::async_scope`
* `v0::async_scope` needs to be fully qualified
  • Loading branch information
janondrusek committed May 3, 2023
1 parent 69df6dc commit 25f3fca
Show file tree
Hide file tree
Showing 9 changed files with 743 additions and 743 deletions.
2 changes: 1 addition & 1 deletion include/unifex/async_scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*/
#pragma once

#include <unifex/v0/async_scope.hpp>
#include <unifex/v1/async_scope.hpp>
4 changes: 2 additions & 2 deletions include/unifex/v0/async_scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

namespace unifex {

inline namespace v0 {
namespace v0 {

namespace _async_scope {

Expand Down Expand Up @@ -259,7 +259,7 @@ struct async_scope {

} // namespace _async_scope

using _async_scope::async_scope;
using v0::_async_scope::async_scope;

} // namespace v0

Expand Down
2 changes: 1 addition & 1 deletion include/unifex/v1/async_scope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

namespace unifex {

namespace v1 {
inline namespace v1 {

namespace _async_scope {

Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ endif()
target_link_libraries(any_sender_of_test PUBLIC gmock)
target_link_libraries(async_manual_reset_event_test PUBLIC gmock)
target_link_libraries(async_scope_test PUBLIC gmock)
target_link_libraries(async_scope_v1_test PUBLIC gmock)
target_link_libraries(async_scope_v0_test PUBLIC gmock)
Loading

0 comments on commit 25f3fca

Please sign in to comment.