CCorrado / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Patch for /trunk/include/gtest/internal/gtest-internal.h #455

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Allow formal parameters with aligned storage to be mocked using MSVC

Without this change, MSVC compilation may fail when trying to mock a method 
that has a formal parameter with aligned storage, even if the mocked method 
uses a const ref formal parameter.  The reason is that the |To| formal 
parameter here is a value parameter, and for types with aligned storage that 
declaration is invalid with MSVC (yielding an error similar to: "actual 
parameter with __declspec(align(X)) won't be aligned").

Original issue reported on code.google.com by jdd...@chromium.org on 14 Mar 2014 at 1:16

Attachments: