octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 30]: Help MSVC with templates


From: Michael Goffioul
Subject: MSVC compiler support [patch 30]: Help MSVC with templates
Date: Tue, 17 Oct 2006 22:08:40 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Help MSVC compiler in using the right template

Index: liboctave/oct-inttypes.cc
===================================================================
RCS file: /cvs/octave/liboctave/oct-inttypes.cc,v
retrieving revision 1.3
diff -p -c -r1.3 oct-inttypes.cc
*** liboctave/oct-inttypes.cc   23 May 2006 06:05:14 -0000      1.3
--- liboctave/oct-inttypes.cc   17 Oct 2006 11:07:42 -0000
*************** INSTANTIATE_INTTYPE (uint32_t);
*** 102,109 ****
  INSTANTIATE_INTTYPE (uint64_t);
  
  #define INSTANTIATE_INTTYPE_BIN_OP(T1, T2, OP) \
!   template octave_int<octave_int_binop_traits<T1, T2>::TR> \
!   operator OP (const octave_int<T1>&, const octave_int<T2>&)
  
  #define INSTANTIATE_INTTYPE_BIN_OPS(T1, T2) \
    INSTANTIATE_INTTYPE_BIN_OP (T1, T2, +); \
--- 102,109 ----
  INSTANTIATE_INTTYPE (uint64_t);
  
  #define INSTANTIATE_INTTYPE_BIN_OP(T1, T2, OP) \
!   template OCTAVE_API octave_int<octave_int_binop_traits<T1, T2>::TR> \
!   operator OP<T1, T2> (const octave_int<T1>&, const octave_int<T2>&)
  
  #define INSTANTIATE_INTTYPE_BIN_OPS(T1, T2) \
    INSTANTIATE_INTTYPE_BIN_OP (T1, T2, +); \

reply via email to

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