Nest some more namespaces
Did someone previously suggest that all namespace had been
nested? Silly.
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I22278c1caaeba8b47dc46fb2ed3078c20a11e190
diff --git a/motors/math.h b/motors/math.h
index 5151714..b9aba4a 100644
--- a/motors/math.h
+++ b/motors/math.h
@@ -10,8 +10,7 @@
// This file has some specialized math functions useful for implementing our
// controls in a minimal number of cycles.
-namespace frc971 {
-namespace motors {
+namespace frc971::motors {
inline constexpr unsigned int Log2RoundUp(unsigned int x) {
return (x < 2) ? x : (1 + Log2RoundUp(x / 2));
@@ -213,7 +212,6 @@
// This must be called before any of the other functions.
void MathInit();
-} // namespace motors
-} // namespace frc971
+} // namespace frc971::motors
#endif // MOTORS_MATH_H_