Skip to content

Commit

Permalink
fix compilation and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
petiaccja committed Feb 20, 2024
1 parent d240d0b commit a5b6d9e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/asyncpp/join.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include "concepts.hpp"
#include "testing/suspension_point.hpp"
#include "promise.hpp"
#include "testing/suspension_point.hpp"

#include <coroutine>
#include <exception>
Expand Down
2 changes: 1 addition & 1 deletion include/asyncpp/shared_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace impl_shared_task {

rc_ptr<promise<T>> m_awaited = nullptr;

awaitable(base base, rc_ptr<promise<T>> awaited) : base(std::move(base)), m_awaited(awaited) {
awaitable(base base, rc_ptr<promise<T>> awaited) : broadcast_event<T>::awaitable(std::move(base)), m_awaited(awaited) {
assert(m_awaited);
}
};
Expand Down
2 changes: 1 addition & 1 deletion include/asyncpp/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace impl_task {

rc_ptr<promise<T>> m_awaited = nullptr;

awaitable(base base, rc_ptr<promise<T>> awaited) : base(std::move(base)), m_awaited(awaited) {
awaitable(base base, rc_ptr<promise<T>> awaited) : event<T>::awaitable(std::move(base)), m_awaited(awaited) {
assert(m_awaited);
}
};
Expand Down
2 changes: 1 addition & 1 deletion test/container/test_atomic_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ TEST_CASE("Atomic item: push-push interleave", "[Atomic item]") {


TEST_CASE("Atomic item: push-close interleave", "[Atomic item]") {
struct scenario: testing::validated_scenario {
struct scenario : testing::validated_scenario {
item_t item;
element e{ 1 };
element* volatile closed = nullptr;
Expand Down
1 change: 0 additions & 1 deletion test/memory/test_rc_ptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,4 @@ TEST_CASE("Refcounted pointer - dereference", "[Refcounted pointer]") {
REQUIRE(ptr->destroyed == 10);
REQUIRE((*ptr).destroyed == 10);
REQUIRE(ptr.get()->destroyed == 10);

}

0 comments on commit a5b6d9e

Please sign in to comment.