...
This commit is contained in:
@@ -16,7 +16,7 @@ namespace mcc
|
||||
|
||||
class MccMountAbstractState
|
||||
{
|
||||
std::function<void()> _getMountStateFunc{[]() {}};
|
||||
std::function<void()> _getMountDataFunc{[]() {}};
|
||||
|
||||
public:
|
||||
typedef std::error_code mount_state_error_t;
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
std::convertible_to<exit_callback_t> auto&& exit_callback,
|
||||
std::convertible_to<error_callback_t> auto&& error_callback)
|
||||
{
|
||||
_getMountStateFunc = [&mount_ptr, this]() { auto mstate = mount_ptr->getMountData(); };
|
||||
_getMountDataFunc = [&mount_ptr, this]() { auto mstate = mount_ptr->getMountData(); };
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
std::string_view ident() const
|
||||
{
|
||||
return "MCC-ABSTRACT-MOUNT-STATE";
|
||||
return "MCC-MOUNT-ABSTRACT-STATE";
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,12 @@ public:
|
||||
|
||||
void exit() {}
|
||||
|
||||
// #ifdef __cpp_explicit_this_parameter
|
||||
// #if __cpp_explicit_this_parameter >= 202110L
|
||||
// void aaa() {}
|
||||
// #endif
|
||||
// #endif
|
||||
|
||||
protected:
|
||||
enter_callback_t _enterCallback{[](const mount_state_error_t&) {}};
|
||||
exit_callback_t _exitCallback{[](const mount_state_error_t&) {}};
|
||||
|
||||
Reference in New Issue
Block a user