-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
137 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright Takatoshi Kondo 2022 | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#if !defined(MQTT_COPYABLE_FUNCTION_HPP) | ||
#define MQTT_COPYABLE_FUNCTION_HPP | ||
|
||
#pragma GCC diagnostic push | ||
#if defined(__GNUC__) | ||
#pragma GCC diagnostic ignored "-Waddress" | ||
#endif // defined(__GNUC__) | ||
|
||
#include <mqtt/external/function2.hpp> | ||
|
||
#include <mqtt/namespace.hpp> | ||
|
||
namespace MQTT_NS { | ||
|
||
template <typename... Params> | ||
using copyable_function = fu2::function<Params...>; | ||
|
||
} // namespace MQTT_NS | ||
|
||
#if defined(__GNUC__) | ||
#pragma GCC diagnostic pop | ||
#endif // defined(__GNUC__) | ||
|
||
#endif // MQTT_COPYABLE_FUNCTION_HPP |
Oops, something went wrong.