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

add comment

parent 1f0d2047
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,7 @@ public: ...@@ -193,7 +193,7 @@ public:
template < typename R > template < typename R >
void Visit1 ( void * userData, const T & first, const R & second ) const { void Visit1 ( void * userData, const T & first, const R & second ) const {
if ( std::type_index ( typeid ( T ) ) == std::type_index ( typeid ( second ) ) ) if ( std::type_index ( typeid ( T ) ) == std::type_index ( typeid ( second ) ) )
this->Visit ( userData, first, dynamic_cast < const T & > ( second ) ); this->Visit ( userData, first, dynamic_cast < const T & > ( second ) ); // tady ten dynamic cast muze byt i static cast ale to by to muselo na g++ 5.2 fungovat
else else
throw std::logic_error ( "Same visitor: Visited types are different." ); throw std::logic_error ( "Same visitor: Visited types are different." );
} }
......
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