Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning C4624 on MSVC 2019 #28

Closed
cmazakas opened this issue Nov 10, 2019 · 1 comment
Closed

Warning C4624 on MSVC 2019 #28

cmazakas opened this issue Nov 10, 2019 · 1 comment

Comments

@cmazakas
Copy link
Member

A warning is generated by the following struct on latest MSVC using /permissive-: https://github.com/boostorg/move/blob/develop/include/boost/move/detail/type_traits.hpp#L895-L905

warning C4624: 'boost::move_detail::alignment_of_hack<T>': destructor was implicitly defined as deleted

The fix is straight-forward:

template <typename T>
struct alignment_of_hack
{
   T t1;
   char c;
   T t2;
   alignment_of_hack();
   ~alignment_of_hack();
};
@igaztanaga
Copy link
Member

Many thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants