Primary template optional<> does not handle references

This commit is contained in:
Andrzej Krzemienski
2016-02-13 00:46:41 +01:00
parent e24ab26874
commit b5b8414c06
10 changed files with 1235 additions and 193 deletions

View File

@ -29,7 +29,7 @@ class none_t {};
struct none_t
{
struct init_tag{};
explicit none_t(init_tag){} // to prevent default constructor
explicit none_t(init_tag){} // to disable default constructor
};
#endif // old implementation workarounds