mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 07:30:35 +08:00
Node<>, SubNode<>: MemPoolSize defaults to zero
This commit is contained in:
@@ -34,7 +34,7 @@ namespace uavcan
|
||||
* Please refer to the documentation for details.
|
||||
* If this value is zero, the constructor will accept a reference to user-provided allocator.
|
||||
*/
|
||||
template <std::size_t MemPoolSize>
|
||||
template <std::size_t MemPoolSize = 0>
|
||||
class UAVCAN_EXPORT Node : public INode
|
||||
{
|
||||
typedef typename
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace uavcan
|
||||
* Please refer to the @ref Node<> for documentation concerning the template arguments; refer to the tutorials
|
||||
* to lean how to use libuavcan in multiprocess applications.
|
||||
*/
|
||||
template <std::size_t MemPoolSize>
|
||||
template <std::size_t MemPoolSize = 0>
|
||||
class UAVCAN_EXPORT SubNode : public INode
|
||||
{
|
||||
typedef typename
|
||||
|
||||
Reference in New Issue
Block a user