Device interface library for multiple platforms including Mbed.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
Maxim Interface is a library framework focused on providing flexible and expressive hardware interfaces. Both communication interfaces such as I2C and 1-Wire and device interfaces such as DS18B20 are supported. Modern C++ concepts are used extensively while keeping compatibility with C++98/C++03 and requiring no external dependencies. The embedded-friendly design does not depend on exceptions or RTTI.
The full version of the project is hosted on GitLab: https://gitlab.com/iabenz/MaximInterface
Diff: MaximInterfaceCore/Function.hpp
- Revision:
- 11:3f3bf6bf5e6c
- Parent:
- 8:5ea891c7d1a1
--- a/MaximInterfaceCore/Function.hpp Mon Sep 30 09:39:32 2019 -0500 +++ b/MaximInterfaceCore/Function.hpp Tue Dec 03 10:52:28 2019 -0600 @@ -330,7 +330,7 @@ }; template <typename ResultType> -inline void swap(Function<ResultType()> & lhs, Function<ResultType()> & rhs) { +void swap(Function<ResultType()> & lhs, Function<ResultType()> & rhs) { lhs.swap(rhs); } @@ -412,8 +412,8 @@ }; template <typename ArgumentType, typename ResultType> -inline void swap(Function<ResultType(ArgumentType)> & lhs, - Function<ResultType(ArgumentType)> & rhs) { +void swap(Function<ResultType(ArgumentType)> & lhs, + Function<ResultType(ArgumentType)> & rhs) { lhs.swap(rhs); } @@ -504,9 +504,8 @@ template <typename FirstArgumentType, typename SecondArgumentType, typename ResultType> -inline void -swap(Function<ResultType(FirstArgumentType, SecondArgumentType)> & lhs, - Function<ResultType(FirstArgumentType, SecondArgumentType)> & rhs) { +void swap(Function<ResultType(FirstArgumentType, SecondArgumentType)> & lhs, + Function<ResultType(FirstArgumentType, SecondArgumentType)> & rhs) { lhs.swap(rhs); } @@ -600,10 +599,10 @@ template <typename FirstArgumentType, typename SecondArgumentType, typename ThirdArgumentType, typename ResultType> -inline void swap(Function<ResultType(FirstArgumentType, SecondArgumentType, - ThirdArgumentType)> & lhs, - Function<ResultType(FirstArgumentType, SecondArgumentType, - ThirdArgumentType)> & rhs) { +void swap(Function<ResultType(FirstArgumentType, SecondArgumentType, + ThirdArgumentType)> & lhs, + Function<ResultType(FirstArgumentType, SecondArgumentType, + ThirdArgumentType)> & rhs) { lhs.swap(rhs); }