Line 0
Link Here
|
|
|
1 |
/* |
2 |
Scan Tailor - Interactive post-processing tool for scanned pages. |
3 |
Copyright (C) Joseph Artsimovich <joseph.artsimovich@gmail.com> |
4 |
|
5 |
This program is free software: you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
7 |
the Free Software Foundation, either version 3 of the License, or |
8 |
(at your option) any later version. |
9 |
|
10 |
This program is distributed in the hope that it will be useful, |
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
GNU General Public License for more details. |
14 |
|
15 |
You should have received a copy of the GNU General Public License |
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 |
*/ |
18 |
|
19 |
#ifndef BOOST_MULTI_INDEX_FOREACH_FIX_H_ |
20 |
#define BOOST_MULTI_INDEX_FOREACH_FIX_H_ |
21 |
|
22 |
#include <boost/foreach.hpp> |
23 |
#include <boost/mpl/bool.hpp> |
24 |
#include <boost/multi_index/sequenced_index.hpp> |
25 |
|
26 |
// BOOST_FOREACH() in boost >= 1.47 has problems with gcc >= 4.6 |
27 |
// These problems aren't specific to boost::multi_index, |
28 |
// but the code below only deals with it. |
29 |
// In future versions of boost, they might include equivalent |
30 |
// code in boost::multi_index itself, which will lead to build problems. |
31 |
// If / when this happens, conditional compilation will be necessary. |
32 |
|
33 |
namespace boost |
34 |
{ |
35 |
namespace foreach |
36 |
{ |
37 |
|
38 |
template<typename SuperMeta, typename TagList> |
39 |
struct is_noncopyable<boost::multi_index::detail::sequenced_index<SuperMeta, TagList> > : mpl::true_ |
40 |
{ |
41 |
}; |
42 |
|
43 |
} // namespace foreach |
44 |
} // namespace boost |
45 |
|
46 |
#endif |