Clarity improvement to Keyboardio Atreus init.

By removing the namespace declaration for the 'using' alias directives, what's going on will hopefully be a little clearer
pull/868/head
Jesse Vincent 4 years ago
parent 11468b3c6c
commit 07213d9f7e
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -22,13 +22,12 @@
#include "kaleidoscope/Runtime.h" #include "kaleidoscope/Runtime.h"
#include "kaleidoscope/driver/keyscanner/Base_Impl.h" #include "kaleidoscope/driver/keyscanner/Base_Impl.h"
// We're using the `kaleidoscope::device::keyboardio` namespace, and set up the
// aliases here, so that they're in the global namespace, within the scope of // Here, we set up aliases to the device's KeyScanner and KeyScannerProps
// this file. We do that, because of how templates are resolved and evaluated, // in the global namespace within the scope of this file. We'll use these
// see more just down below! // aliases to simplify some template initialization code below.
using namespace kaleidoscope::device::keyboardio; using KeyScannerProps = typename kaleidoscope::device::keyboardio::AtreusProps::KeyScannerProps;
using KeyScannerProps = typename AtreusProps::KeyScannerProps; using KeyScanner = typename kaleidoscope::device::keyboardio::AtreusProps::KeyScanner;
using KeyScanner = typename AtreusProps::KeyScanner;
namespace kaleidoscope { namespace kaleidoscope {
namespace device { namespace device {

Loading…
Cancel
Save