From ebdd6c955271e784cef9cb4019e1e81f4ec3810e Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 15 Mar 2007 10:26:23 +0000 Subject: [PATCH] \fixme isn't accepted outside a function definition: Warning: Found unknown command `\fixme' git-svn-id: http://svn.voria.com/code@316 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_misc.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ETL/trunk/ETL/_misc.h b/ETL/trunk/ETL/_misc.h index 33d02b3..30277e3 100644 --- a/ETL/trunk/ETL/_misc.h +++ b/ETL/trunk/ETL/_misc.h @@ -71,10 +71,12 @@ binary_find(I begin, I end, const T& value) #endif } -/*! \fixme Isn't there some x86 FPU instruction for quickly -** converting a float to a rounded integer? It's worth -** looking into at some point... */ -inline int round_to_int(const float x) { return static_cast(x+0.5f); } +inline int round_to_int(const float x) { + /*! \fixme Isn't there some x86 FPU instruction for quickly + ** converting a float to a rounded integer? It's worth + ** looking into at some point... */ + return static_cast(x+0.5f); +} inline int round_to_int(const double x) { return static_cast(x+0.5); } inline int ceil_to_int(const float x) { return static_cast(ceil(x)); } -- 2.7.4