Skip to content
Snippets Groups Projects
Verified Commit 4bf12f96 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: add missing const

parent 24bb01c6
No related branches found
No related tags found
No related merge requests found
// //
// Copyright (c) 2020 INRIA // Copyright (c) 2020-2023 INRIA
// //
#ifndef __eigenpy_utils_is_aligned_hpp__ #ifndef __eigenpy_utils_is_aligned_hpp__
#define __eigenpy_utils_is_aligned_hpp__ #define __eigenpy_utils_is_aligned_hpp__
namespace eigenpy { namespace eigenpy {
inline bool is_aligned(void* ptr, std::size_t alignment) { inline bool is_aligned(const void* ptr, std::size_t alignment) {
return (reinterpret_cast<std::size_t>(ptr) & (alignment - 1)) == 0; return (reinterpret_cast<std::size_t>(ptr) & (alignment - 1)) == 0;
} }
} // namespace eigenpy } // namespace eigenpy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment