mirror of
https://github.com/boostorg/align.git
synced 2026-01-23 05:12:09 +00:00
20 lines
370 B
C++
20 lines
370 B
C++
/*
|
|
Copyright (c) 2014 Glen Joseph Fernandes
|
|
glenfe at live dot com
|
|
|
|
Distributed under the Boost Software License,
|
|
Version 1.0. (See accompanying file LICENSE_1_0.txt
|
|
or copy at http://boost.org/LICENSE_1_0.txt)
|
|
*/
|
|
#include "make_aligned.hpp"
|
|
|
|
struct alignas(16) type {
|
|
float data[4];
|
|
};
|
|
|
|
int main()
|
|
{
|
|
auto p = make_aligned<type>();
|
|
p->data[0] = 1.0f;
|
|
}
|