help-source-highlight
[Top][All Lists]
Advanced

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

Re: [Help-source-highlight] source-highlight on solaris?


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] source-highlight on solaris?
Date: Wed, 21 Apr 2010 10:12:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

On 04/21/2010 09:21 AM, Stefan Palm wrote:
  it looks like that

std::set::insert which takes two iterators is standard in stl:

http://www.cplusplus.com/reference/stl/set/insert/

can it be that your sparc compiler stl implementation is not standard or
too old?

At the above link there's an example using insert, could you please try
to compile it with your sparc compiler and see whether that works?

Works fine.

adebld1z:/tmp>  /opt/sunstudio12.1/bin/CC example.cpp -o example.bin
adebld1z:/tmp>  ./example.bin
myset contains: 5 10 15 20 24 25 26 30 40 50

Stefan

Stefan

please try with this other example which should mimic the same types of the code which generates the compiler error, and let me know

cheers
        Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net

Attachment: setexample.cpp
Description: Text Data


reply via email to

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