]> git.donarmstrong.com Git - flightcrew.git/blobdiff - debian/patches/disable_filesystem3_overload
add initial packaging of debian files including patches
[flightcrew.git] / debian / patches / disable_filesystem3_overload
diff --git a/debian/patches/disable_filesystem3_overload b/debian/patches/disable_filesystem3_overload
new file mode 100644 (file)
index 0000000..a68336c
--- /dev/null
@@ -0,0 +1,51 @@
+--- a/src/FlightCrew/Validators/Opf/ReachabilityAnalysis.cpp
++++ b/src/FlightCrew/Validators/Opf/ReachabilityAnalysis.cpp
+@@ -27,27 +27,27 @@
+ #include "Misc/DetermineMimetype.h"\r
+ #include "Misc/Utilities.h"\r
\r
+-namespace boost\r
+-{\r
+-\r
+-namespace filesystem3\r
+-{    \r
+-    // This overload of the boost hash_value func\r
+-    // is necessary so that we can put fs::paths\r
+-    // in boost::unordered_sets\r
+-    std::size_t hash_value( const fs::path &mypath ) \r
+-    {\r
+-#ifdef _WIN32\r
+-        boost::hash< std::wstring > hasher;\r
+-        return hasher( mypath.generic_wstring() );\r
+-#else\r
+-        boost::hash< std::string > hasher;\r
+-        return hasher( mypath.generic_string() );\r
+-#endif \r
+-    }\r
+-} // namespace filesystem3\r
+-\r
+-} // namespace boost\r
++// namespace boost\r
++// {\r
++// \r
++// namespace filesystem3\r
++// {    \r
++//     // This overload of the boost hash_value func\r
++//     // is necessary so that we can put fs::paths\r
++//     // in boost::unordered_sets\r
++//     std::size_t hash_value( const fs::path &mypath ) \r
++//     {\r
++// #ifdef _WIN32\r
++//         boost::hash< std::wstring > hasher;\r
++//         return hasher( mypath.generic_wstring() );\r
++// #else\r
++//         boost::hash< std::string > hasher;\r
++//         return hasher( mypath.generic_string() );\r
++// #endif \r
++//     }\r
++// } // namespace filesystem3\r
++// \r
++// } // namespace boost\r
\r
\r
+ namespace FlightCrew\r