eolian-cxx: Add workaround for clang removing const from parameters

This commit is contained in:
Felipe Magno de Almeida 2017-08-10 15:52:25 -03:00
parent 49bdba8505
commit 348a7084af
1 changed files with 5 additions and 0 deletions

View File

@ -605,6 +605,11 @@ T convert_to_return(T value, tag<T, T>)
{
return value;
}
template <typename U, typename T>
T convert_to_return(U const value, tag<U const, T>)
{
return value;
}
template <typename T>
T& convert_to_return(T* value, tag<T*, T&>)
{