poperdolilo
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include "links/BaseLink.h"
|
||||
#include <stdexcept>
|
||||
|
||||
class LeafLink : public BaseLink {
|
||||
public:
|
||||
using BaseLink::BaseLink;
|
||||
void addChild(const LinkPtr&) override { throw std::logic_error("LeafLink cannot have children"); }
|
||||
};
|
||||
Reference in New Issue
Block a user