Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3601350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:36:40+00:00 2026-05-18T20:36:40+00:00

I just released a skiplist container library. And the Sun compiler complains about this:

  • 0

I just released a skiplist container library. And the Sun compiler complains about this:

template <class T, class R>
bool operator==(const IndexedSkipList<T,R> &left, const IndexedSkipList<T,R> &right)
{
  return ((left.size() == right.size()) &&
          (std::equal(left.begin(), left.end(), right.begin())));
}

The errors are:

"include/CSIndexedSkipList.h", line 65: Error: Too few arguments for template std::reverse_iterator<CS::BidiIdxIterator<CS::IndexedSkipList<CS::T, CS::R>>>.
"include/CSIndexedSkipList.h", line 207:     Where: While specializing "CS::IndexedSkipList<CS::T, CS::R>".
"include/CSIndexedSkipList.h", line 207:     Where: Specialized in non-template code.

The code above is what starts at 207. But it seems that it’s complaining about the reverse_iterator. I can’t really make sense of it. I don’t have direct access to the Sun compiler, so I was wondering if I’m doing something wrong.

Also, I’m only using one template argument in reverse_iterator, but I noticed the SGI documentation saying that there is no default for the second argument T. Everywhere I’ve looked though, they just use this:

typedef std::reverse_iterator<iterator> reverse_iterator;

That’s line 65 that the compiler complains about. Do I need to add T as a parameter? I can’t figure out the error in question.

BTW, this works on gcc on all platforms I could find. And it works in Borland as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:36:41+00:00Added an answer on May 18, 2026 at 8:36 pm

    As explained at Comparing C++ Standard Libraries libCstd and libstlport, the Sun C++ compiler ships with two implementations of a “C++ standard library”: libCstd and libstlport. Unfortunately, libCstd is not standards-conforming, but it is the default for backward-compatibility reasons. Among other differences, libCstd’s version of the std::reverse_iterator template uses more than one template parameter.

    You need to instruct the compiler to use libstlport by passing in the compiler option -library=stlport4.

    See also:

    • Boost doesn’t build on solaris when compiled with libCstd – focus on program_options
    • Issue 53 – google-sparsehash – Compilation fails on SunOS CC compiler
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just released a skiplist container library. And the Sun compiler complains about this:
Just released this morning an app that I tested on all possible devices and
I just released a website for a client, pacayamountaincoffee.com. I woke up this morning
Well you know they just released this new XCode 4 version thing...... I am
I just released v2.0.0 of the ginjo-rfm gem. When I install this gem on
I just released my web application. However I'm curious about production.log's size. It will
So I've just released my first module for nodejs . Things that I did:
Last Thursday we just released a new version of our website. The big change
jQuery Mobile 1.1.0 Final was just released and promises: True fixed toolbars: Lightweight, CSS-based
I am an android developer and I just released a new version of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.