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

  • SEARCH
  • Home
  • 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 9083607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:48:51+00:00 2026-06-16T20:48:51+00:00

When compiling my source I got this error, ‘MPageArrayCursor’ : illegal use of this

  • 0

When compiling my source I got this error, ‘MPageArrayCursor’ : illegal use of this type as an expression on this part of the source:

class MPageArrayCursor { 
protected: 
    int m_nIndex;

public: 
    MPageArrayCursor(int nIndex) { 
        m_nIndex = nIndex; 
    } 

    virtual ~MPageArrayCursor(); 

    int GetIndex() {
        return m_nIndex; 
    } 

    void SetIndex(int nIndex) {
        m_nIndex = nIndex;
    } 
};

void Add(T pData, MPageArrayCursor* pCursor=NULL)
{
    int nFreeSlot = m_UnusedQueue.top();
    m_UnusedQueue.pop();

    Set(nFreeSlot, pData, pCursor);
}

Originally was a VC++ 2k10 solution that I ported to 2k12.
Why I’m getting this error?

This is the full code: http://pastebin.com/xjVKCZjZ

  • 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-06-16T20:48:53+00:00Added an answer on June 16, 2026 at 8:48 pm

    Your code works fine except you need to include functional header for std::greater function operator on VS2012

    #include <functional>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this error while compiling a big c# solution in Visual Studio 2010.
This is the error I got while compiling the jrxml file: Compiling to file...
I have got this weird error when compiling my project with Visual Studio 2012:
I'm using Python 2.7.2 on Ubuntu 11.10. I got this error when importing the
I am compiling MongoDB from source with instructions from http://www.mongodb.org/display/DOCS/Building+for+Linux I ran into this
Recently got this following error in my application JPA/Hibernate with database Oracle RAC 11g.
I am using gcc -MM to generate prerequisites of dependencies rules for compiling source
After compiling PHP from source are the devel libraries still needed? For example, I
For example, I need to do some pre-processing of source files before compiling. How
Compiling this code with g++ 4.7.0 ( -Wall -Wextra -Werror -Wconversion -std=c++11 ): #include

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.