Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 391427
Collapse All | Expand All

(-)scantailor-0.9.10-old/compat/boost_multi_index_foreach_fix.h (+46 lines)
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
(-)scantailor-0.9.10-old/ProjectWriter.cpp (+1 lines)
Lines 25-30 Link Here
25
#include "ImageMetadata.h"
25
#include "ImageMetadata.h"
26
#include "AbstractFilter.h"
26
#include "AbstractFilter.h"
27
#include "FileNameDisambiguator.h"
27
#include "FileNameDisambiguator.h"
28
#include "compat/boost_multi_index_foreach_fix.h"
28
#include <QtXml>
29
#include <QtXml>
29
#include <QFile>
30
#include <QFile>
30
#include <QTextStream>
31
#include <QTextStream>
(-)scantailor-0.9.10-old/zones/EditableZoneSet.h (+16 lines)
Lines 24-29 Link Here
24
#include "PropertySet.h"
24
#include "PropertySet.h"
25
#include "IntrusivePtr.h"
25
#include "IntrusivePtr.h"
26
#include <QObject>
26
#include <QObject>
27
#include <boost/mpl/bool.hpp>
28
#include <boost/foreach.hpp>
27
#include <boost/iterator/iterator_facade.hpp>
29
#include <boost/iterator/iterator_facade.hpp>
28
#include <map>
30
#include <map>
29
31
Lines 102-105 Link Here
102
	PropertySet m_defaultProps;
104
	PropertySet m_defaultProps;
103
};
105
};
104
106
107
namespace boost
108
{
109
namespace foreach
110
{
111
112
// Make BOOST_FOREACH work with the above class (necessary for boost >= 1.46 with gcc >= 4.6)
113
template<>
114
struct is_noncopyable<EditableZoneSet> : public boost::mpl::true_
115
{
116
};
117
118
} // namespace foreach
119
} // namespace boost
120
105
#endif
121
#endif

Return to bug 391427