0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::fs::map: Add static opts instance w/ default ctor argument.

This commit is contained in:
Jason Volk 2021-03-09 22:05:43 -08:00
parent 734948863f
commit 6f3adfd160
2 changed files with 6 additions and 1 deletions

View file

@ -29,8 +29,10 @@ struct ircd::fs::map
{
struct opts;
static const opts default_opts;
map() = default;
map(const fd &, const opts &opts, const size_t &size = 0UL);
map(const fd &, const opts &opts = default_opts, const size_t &size = 0UL);
map(map &&) noexcept;
map(const map &) = delete;
map &operator=(map &&) noexcept;

View file

@ -2049,6 +2049,9 @@ ircd::fs::advise(const map &map,
// map::map
//
decltype(ircd::fs::map::default_opts)
ircd::fs::map::default_opts;
ircd::fs::map::map(const fd &fd,
const opts &opts,
const size_t &size)