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

The Free MS Windows replacement operating system ReactOS has just released a new version.
Mono 2.0 was just officially released . What single feature do you think is
Just playing around with the now released Silverlight 2.0. I'm trying to put a
I just installed the first release candidate of Python 3.0 and got this error
Gmail just released an update to their interface allowing the user to select more
Microsoft just released Code Contracts , a tool that integrates with Visual Studio and
I just released a free version of a paid app store application, and I
Apple just released iPhone SDK 3.1.2. I was wondering wether they changed some libraries
Apple just released some sample code on lazy loading images in a UITableView a
I just released a Rails app in Dreamhost and I'm using Google Apps for

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.