Commit 512b1b3 1 parent a2567f1 commit 512b1b3 Copy full SHA for 512b1b3
File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ namespace vx::logger {
66
66
67
67
return {
68
68
69
- std::type_index ( typeid ( T ) ),
69
+ std::type_index ( static_cast <std::type_index>( typeid ( T ) ) ),
70
70
[ function = _function ]( Logger &_logger,
71
71
[[maybe_unused]] const std::any &_any ) {
72
72
function ( _logger, std::any_cast<const T &>( _any ) );
Original file line number Diff line number Diff line change 30
30
31
31
/* c header */
32
32
#include < cerrno>
33
+ #include < cstddef> // std::size_t
33
34
#include < cstdint> // std::int32_t
34
35
#include < cstdio>
35
36
#include < cstring> // strerror_r
36
37
37
38
/* system header */
38
- #include < fcntl.h> // open
39
+ #include < sys/ fcntl.h> // open
39
40
#include < termios.h>
40
41
#include < unistd.h> // write, read, close
41
42
@@ -129,13 +130,16 @@ namespace vx {
129
130
}
130
131
}
131
132
132
- /* *
133
- * @brief Return timestamp in milliseconds.
134
- * @return Timestamp in milliseconds.
135
- */
136
- static inline std::chrono::milliseconds timestampMs () noexcept {
133
+ namespace {
137
134
138
- return std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::steady_clock::now ().time_since_epoch () );
135
+ /* *
136
+ * @brief Return timestamp in milliseconds.
137
+ * @return Timestamp in milliseconds.
138
+ */
139
+ inline std::chrono::milliseconds timestampMs () noexcept {
140
+
141
+ return std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::steady_clock::now ().time_since_epoch () );
142
+ }
139
143
}
140
144
141
145
bool Serial::flush () const {
Original file line number Diff line number Diff line change 28
28
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
29
*/
30
30
31
+ /* c header */
32
+ #include < cstddef>
33
+
31
34
/* stl header */
32
35
#include < string>
33
36
You can’t perform that action at this time.
0 commit comments