forked from boostorg/optional
Fixed bug in test on compiler with no rvalue refs
This commit is contained in:
@ -108,7 +108,7 @@ struct FatToIntConverter
|
|||||||
static int conversions;
|
static int conversions;
|
||||||
int _val;
|
int _val;
|
||||||
FatToIntConverter(int val) : _val(val) {}
|
FatToIntConverter(int val) : _val(val) {}
|
||||||
operator int() { conversions += 1; return _val; }
|
operator int() const { conversions += 1; return _val; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int FatToIntConverter::conversions = 0;
|
int FatToIntConverter::conversions = 0;
|
||||||
|
Reference in New Issue
Block a user