From abe485494e6f36d43dc0bc1a87a01e13036acd82 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 7 Jan 2005 17:54:12 +0000 Subject: [PATCH] Specialise the convert template to long for Solaris. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9457 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 6 +++++- src/support/convert.C | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 784c42fb70..59d37379e5 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,6 +1,10 @@ +2005-01-07 Angus Leeming + + * convert.C (string>): add specialization for long. + 2005-01-07 Lars Gullik Bjonnes - * convert.h: remove the specializations, dont included unneeded + * convert.h: remove the specializations, don't included unneeded headers * convert.C: add specialization for unsigned long diff --git a/src/support/convert.C b/src/support/convert.C index d785c3fe20..800ae8fc99 100644 --- a/src/support/convert.C +++ b/src/support/convert.C @@ -64,6 +64,13 @@ string convert(unsigned long ul) } +template<> +string convert(long l) +{ + return lexical_cast(l); +} + + template<> string convert(float f) { -- 2.39.2