GH #240: VERY strange error only when including Format.hinclude Alignment.h early

GH #240: VERY strange error only when including Format.h (include
Alignment.h early for consistency)
This commit is contained in:
Aleksandar Fabijanic 2013-07-22 01:10:36 -05:00
parent 20e1cf8821
commit a49f5da54b
4 changed files with 168 additions and 159 deletions

View File

@ -54,6 +54,16 @@
#define Foundation_AlignOf_INCLUDED
#ifdef POCO_ENABLE_CPP11
#include <type_traits>
#define POCO_HAVE_ALIGNMENT
#else
namespace Poco {
@ -245,4 +255,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl;
} // namespace Poco
#endif // POCO_ENABLE_CPP11
#endif // Foundation_AlignOf_INCLUDED

View File

@ -40,13 +40,10 @@
#include "Poco/Exception.h"
#include "Poco/MetaProgramming.h"
#include "Poco/Alignment.h"
#include <algorithm>
#include <typeinfo>
#include <cstring>
#ifdef POCO_ENABLE_CPP11
#include <type_traits>
#endif
namespace Poco {

View File

@ -129,6 +129,11 @@
#endif
//
// Include alignment settings early
//
#include "Poco/Alignment.h"
//
// Cleanup inconsistencies
//

View File

@ -46,12 +46,6 @@
#include "Poco/AutoPtr.h"
#include "Poco/Exception.h"
#include <vector>
#ifdef POCO_ENABLE_CPP11
#include <type_traits>
#define POCO_HAVE_ALIGNMENT
#else
#include "Poco/Alignment.h"
#endif
namespace Poco {