]> git.donarmstrong.com Git - flightcrew.git/blob - debian/patches/disable_filesystem3_overload
debian/patches/*: fix quilt-patch-missing-description lintian tag
[flightcrew.git] / debian / patches / disable_filesystem3_overload
1 Description: disable filesystem3 overload
2 Author: Don Armstrong <don@debian.org>
3 Forwarded: no
4 Last-Update: 2013-02-14
5
6 --- a/src/FlightCrew/Validators/Opf/ReachabilityAnalysis.cpp
7 +++ b/src/FlightCrew/Validators/Opf/ReachabilityAnalysis.cpp
8 @@ -27,27 +27,27 @@
9  #include "Misc/DetermineMimetype.h"\r
10  #include "Misc/Utilities.h"\r
11  \r
12 -namespace boost\r
13 -{\r
14 -\r
15 -namespace filesystem3\r
16 -{    \r
17 -    // This overload of the boost hash_value func\r
18 -    // is necessary so that we can put fs::paths\r
19 -    // in boost::unordered_sets\r
20 -    std::size_t hash_value( const fs::path &mypath ) \r
21 -    {\r
22 -#ifdef _WIN32\r
23 -        boost::hash< std::wstring > hasher;\r
24 -        return hasher( mypath.generic_wstring() );\r
25 -#else\r
26 -        boost::hash< std::string > hasher;\r
27 -        return hasher( mypath.generic_string() );\r
28 -#endif \r
29 -    }\r
30 -} // namespace filesystem3\r
31 -\r
32 -} // namespace boost\r
33 +// namespace boost\r
34 +// {\r
35 +// \r
36 +// namespace filesystem3\r
37 +// {    \r
38 +//     // This overload of the boost hash_value func\r
39 +//     // is necessary so that we can put fs::paths\r
40 +//     // in boost::unordered_sets\r
41 +//     std::size_t hash_value( const fs::path &mypath ) \r
42 +//     {\r
43 +// #ifdef _WIN32\r
44 +//         boost::hash< std::wstring > hasher;\r
45 +//         return hasher( mypath.generic_wstring() );\r
46 +// #else\r
47 +//         boost::hash< std::string > hasher;\r
48 +//         return hasher( mypath.generic_string() );\r
49 +// #endif \r
50 +//     }\r
51 +// } // namespace filesystem3\r
52 +// \r
53 +// } // namespace boost\r
54  \r
55  \r
56  namespace FlightCrew\r