具有 __declspec(align('16')) 的形参将不被对齐

C++语言 码拜 9年前 (2015-11-16) 2059次浏览
给一个模板函数传递一个有对齐了的成员变量的参数参数这个错误,error C2719: “unnamed-parameter”:  具有 __declspec(align(“”16″”)) 的形参将不被对齐,求指导释
解决方案:10分
在微软网站上找到的
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
解决方案:10分
编译器还不支持,16字节对齐的函数参数,如此而已。

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明具有 __declspec(align('16')) 的形参将不被对齐
喜欢 (0)
[1034331897@qq.com]
分享 (0)