1
0
Fork 0

Add deleted constructor to avoid the compiler falling through to the bool constructor in case of missuse.

This commit is contained in:
Willi Goesgens 2014-08-20 16:56:52 +02:00
parent 3fe8831a03
commit 37a636d929
1 changed files with 2 additions and 0 deletions

View File

@ -486,6 +486,8 @@ namespace triagens {
: _zone(z), _json(j), _autofree(autofree) {
}
explicit Json (TRI_json_t* j) = delete;
////////////////////////////////////////////////////////////////////////////////
/// @brief "copy" constructor, note that in the AUTOFREE case this steals
/// the structure from j to allow returning Json objects by value without