Skip to content
Snippets Groups Projects
Commit 50f6d978 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix throw cause string

parent 74fbc5fa
No related branches found
No related tags found
1 merge request!125procedural aql
...@@ -116,7 +116,7 @@ class ValueHolder : public ValueHolderImpl < Type > { ...@@ -116,7 +116,7 @@ class ValueHolder : public ValueHolderImpl < Type > {
public: public:
ValueHolder ( Type && value, bool temporary ) : ValueHolderImpl < Type > ( temporary ) { ValueHolder ( Type && value, bool temporary ) : ValueHolderImpl < Type > ( temporary ) {
if ( this->isLvalueRef ( ) && this->isTemporary ( ) ) if ( this->isLvalueRef ( ) && this->isTemporary ( ) )
throw std::domain_error ( "Lvalue references cannot be a temporarie." ); throw std::domain_error ( "Lvalue references cannot be temporaries." );
   
this->setData ( std::forward < Type > ( value ) ); this->setData ( std::forward < Type > ( value ) );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment