]> git.tdb.fi Git - libs/datafile.git/commit
Disable the templated constructor of Value if the source type is Value
authorMikko Rasa <tdb@tdb.fi>
Sun, 18 Dec 2022 10:59:32 +0000 (12:59 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 18 Dec 2022 10:59:32 +0000 (12:59 +0200)
commit9d71185a55558c80c85a65e13427dd491a2f4451
treef2af7856ecf54ea5617cebe8eb2d481e4287d576
parent2b4fbb2816351e9acab8f84b902f00c475cc0ab0
Disable the templated constructor of Value if the source type is Value

Microsoft's std::vector uses a T & (without const) for copying, which
resolves to the templated constructor instead of the copy constructor
unless the former is disabled for that signature.
source/value.h