diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-09 16:28:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-09 16:28:11 +0200 |
commit | eeb4dd62fe81070217511a754ca539325bdd9d78 (patch) | |
tree | 741256ce7f44058a3157d0cf45d8801233ed540b | |
parent | e66fbe664f6430c1090c71cf52588070080ff39a (diff) |
Workaround for GCC bug #86441
-rw-r--r-- | bpkg/package.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bpkg/package.hxx b/bpkg/package.hxx index ab0d144..6b19203 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -44,9 +44,10 @@ namespace bpkg } }; + using optional_string = optional<string>; + // path // - using optional_string = optional<string>; using optional_path = optional<path>; using optional_dir_path = optional<dir_path>; @@ -1364,6 +1365,16 @@ namespace bpkg */ } +// Workaround for GCC __is_invocable/non-constant condition bug (#86441). +// +#ifdef ODB_COMPILER +namespace std +{ + template class map<bpkg::available_package::_dependency_key, + bpkg::dependency>; +} +#endif + #include <bpkg/package.ixx> #endif // BPKG_PACKAGE_HXX |