Some compilers don't like x = {} where x is a boost::optional<string>
authorCarl Hetherington <cth@carlh.net>
Tue, 2 Feb 2021 21:02:29 +0000 (22:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 2 Feb 2021 21:51:49 +0000 (22:51 +0100)
Fails on ubuntu 16 and debian 9.

src/asset.cc

index b911c70b958435c754d2e153c58edc811789e18e..e68229033c8609b122423b7c44d8809b6dfb6242 100644 (file)
@@ -162,7 +162,7 @@ void
 Asset::set_file (path file) const
 {
        _file = absolute (file);
-       _hash = {};
+       _hash = boost::optional<string>();
 }