We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bb01c commit 4bf12f9Copy full SHA for 4bf12f9
include/eigenpy/utils/is-aligned.hpp
@@ -1,12 +1,12 @@
1
//
2
-// Copyright (c) 2020 INRIA
+// Copyright (c) 2020-2023 INRIA
3
4
5
#ifndef __eigenpy_utils_is_aligned_hpp__
6
#define __eigenpy_utils_is_aligned_hpp__
7
8
namespace eigenpy {
9
-inline bool is_aligned(void* ptr, std::size_t alignment) {
+inline bool is_aligned(const void* ptr, std::size_t alignment) {
10
return (reinterpret_cast<std::size_t>(ptr) & (alignment - 1)) == 0;
11
}
12
} // namespace eigenpy
0 commit comments