Fix various issues related to stability when using highly compliant compilers such as Comeau 4.3.0.1, VC7.1 and GCC 3.2
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@108 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
80e63b12a3
commit
b53b3265e4
56 changed files with 441 additions and 203 deletions
|
@ -178,6 +178,11 @@ namespace Loki
|
|||
|
||||
template <class T> struct CreateStatic
|
||||
{
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1300
|
||||
#pragma warning( push )
|
||||
// alignment of a member was sensitive to packing
|
||||
#pragma warning( disable : 4121 )
|
||||
#endif // _MSC_VER
|
||||
union MaxAlign
|
||||
{
|
||||
char t_[sizeof(T)];
|
||||
|
@ -191,6 +196,9 @@ namespace Loki
|
|||
int Test::* pMember_;
|
||||
int (Test::*pMemberFn_)(int);
|
||||
};
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1300
|
||||
#pragma warning( pop )
|
||||
#endif // _MSC_VER
|
||||
|
||||
static T* Create()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue