Fixed bug 3509427 by adding use of Loki::TypeTraits.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1179 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2012-04-02 06:01:51 +00:00
parent 745e0efa2e
commit 42786afc4b
2 changed files with 6 additions and 5 deletions

View file

@ -44,6 +44,7 @@
#include <iostream>
#include <loki/LokiExport.h>
#include <loki/TypeTraits.h>
// long is 32 bit on 64-bit Windows!
@ -132,7 +133,7 @@ namespace Loki
another device type. It is not for public use.
*/
template < class Device2 >
PrintfState< Device2, Char > ChangeDevice( Device2 & device ) const
PrintfState< Device2, Char > ChangeDevice( typename Loki::TypeTraits< Device2 >::ParameterType device ) const
{
return PrintfState< Device2, Char >( device, format_, width_, prec_, flags_, result_ );
}