Add Status object to AOS
This provides a type, comparable to absl::Status or std::error_code,
that can be used for communicating error messages back to users.
Future revisions may introduce additional sophistication, with either
more elaborate error codes or with more ability to communicate
structured information at run-time. However, doing those things in ways
that play nice with realtime code will require some additional effort,
so for now we keep the API relatively simple.
Change-Id: I9b9fa89bfd37bb18dbac7672939a867dac81600a
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/containers/inlined_vector.h b/aos/containers/inlined_vector.h
index 5cf33a4..a92e46b 100644
--- a/aos/containers/inlined_vector.h
+++ b/aos/containers/inlined_vector.h
@@ -10,11 +10,17 @@
namespace aos {
template <typename T, size_t N>
-struct InlinedVector : public absl::InlinedVector<T, N> {};
+struct InlinedVector : public absl::InlinedVector<T, N> {
+ public:
+ using absl::InlinedVector<T, N>::InlinedVector;
+};
// Specialized for the N == 0 case because absl::InlinedVector doesn't support
// it for some reason.
template <typename T>
-struct InlinedVector<T, 0> : public std::vector<T> {};
+struct InlinedVector<T, 0> : public std::vector<T> {
+ public:
+ using std::vector<T>::vector;
+};
} // namespace aos
#endif // AOS_CONTAINERS_INLINED_VECTOR_H_