File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 */
99
1010#include " geom-functions.hpp"
11+
1112#include " geom-boost-adaptor.hpp"
13+ #include " overloaded.hpp"
1214
1315#include < algorithm>
1416#include < cmath>
Original file line number Diff line number Diff line change @@ -403,16 +403,4 @@ std::size_t dimension(geometry_t const &geom);
403403
404404} // namespace geom
405405
406- // This magic is used for visiting geometries. For an explanation see for
407- // instance here:
408- // https://arne-mertz.de/2018/05/overload-build-a-variant-visitor-on-the-fly/
409- template <class ... Ts>
410- struct overloaded : Ts...
411- {
412- using Ts::operator ()...;
413- };
414-
415- template <class ... Ts>
416- overloaded (Ts...) -> overloaded<Ts...>;
417-
418406#endif // OSM2PGSQL_GEOM_HPP
Original file line number Diff line number Diff line change 1+ #ifndef OSM2PGSQL_OVERLOADED_HPP
2+ #define OSM2PGSQL_OVERLOADED_HPP
3+
4+ /* *
5+ * SPDX-License-Identifier: GPL-2.0-or-later
6+ *
7+ * This file is part of osm2pgsql (https://osm2pgsql.org/).
8+ *
9+ * Copyright (C) 2006-2023 by the osm2pgsql developer community.
10+ * For a full list of authors see the git log.
11+ */
12+
13+ // This magic is used for visiting geometries. For an explanation see for
14+ // instance here:
15+ // https://arne-mertz.de/2018/05/overload-build-a-variant-visitor-on-the-fly/
16+ template <class ... Ts>
17+ struct overloaded : Ts...
18+ {
19+ using Ts::operator ()...;
20+ };
21+
22+ template <class ... Ts>
23+ overloaded (Ts...) -> overloaded<Ts...>;
24+
25+ #endif // OSM2PGSQL_OVERLOADED_HPP
Original file line number Diff line number Diff line change 1010#include " wkb.hpp"
1111
1212#include " format.hpp"
13+ #include " overloaded.hpp"
1314
1415#include < array>
1516#include < cassert>
You can’t perform that action at this time.
0 commit comments