feat: removed "canvas" references

This commit is contained in:
Sara 2025-06-03 14:30:56 +02:00
parent f313d1abbe
commit 64f1ddaa36
2 changed files with 5 additions and 9 deletions

View file

@ -1,10 +1,9 @@
#ifndef CANVAS_CALLABLE_HPP #ifndef CALLABLE_HPP
#define CANVAS_CALLABLE_HPP #define CALLABLE_HPP
#include <functional> #include <functional>
#include <memory> #include <memory>
namespace ce {
/* Base interface template for a member function pointer object /* Base interface template for a member function pointer object
*/ */
template <class Return, class... Args> template <class Return, class... Args>
@ -64,6 +63,5 @@ template <class Return, class... Args> Return Callable<Return, Args...>::call(Ar
template <class Return, class... Args> bool operator==(Callable<Return, Args...> const &lhs, Callable<Return, Args...> const &rhs) { template <class Return, class... Args> bool operator==(Callable<Return, Args...> const &lhs, Callable<Return, Args...> const &rhs) {
return lhs.hidden->equals(*rhs.hidden.get()); return lhs.hidden->equals(*rhs.hidden.get());
} }
}
#endif // !CANVAS_CALLABLE_HPP #endif // !CALLABLE_HPP

View file

@ -1,11 +1,10 @@
#ifndef CANVAS_SIGNAL_HPP #ifndef SIGNAL_HPP
#define CANVAS_SIGNAL_HPP #define SIGNAL_HPP
#include "callable.hpp" #include "callable.hpp"
#include <cstdio> #include <cstdio>
#include <vector> #include <vector>
namespace ce {
/*! Observer-listener implementation /*! Observer-listener implementation
*/ */
template <class... Args> template <class... Args>
@ -60,6 +59,5 @@ void TEST_signals() {
signal.invoke(10); signal.invoke(10);
} }
#endif #endif
}
#endif // !CANVAS_SIGNAL_HPP #endif // !CANVAS_SIGNAL_HPP