octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MSVC compilation problem: std::abs<int64_t> does not exist


From: Abdelrazak Younes
Subject: Re: MSVC compilation problem: std::abs<int64_t> does not exist
Date: Thu, 30 Oct 2008 18:08:06 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b1pre) Gecko/20081006 Shredder/3.0a3

On 30/10/2008 16:04, Michael Goffioul wrote:
As the subject says, there's no specialization of abs for int64_t type
in MSVC. Any idea on how to fix this?
(Problem occurs in oct-inttypes.h, line 697).

template <typename T> T abs(T t) { return t > 0 ? t : -t; }

:-)
Abdel.

PS: by the way, is there a HOWTO compile with MSVC?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]