mirror of
https://github.com/boostorg/align.git
synced 2026-07-22 13:23:48 +00:00
13 lines
307 B
C++
13 lines
307 B
C++
// Copyright 2026 Peter Dimov.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// https://www.boost.org/LICENSE_1_0.txt
|
|
|
|
#include <boost/align.hpp>
|
|
|
|
int main()
|
|
{
|
|
void* p = 0;
|
|
(void)p;
|
|
return boost::alignment::is_aligned( &p, boost::alignment::alignment_of<void*>::value )? 0: 1;
|
|
}
|