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 622721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:00:55+00:00 2026-05-13T19:00:55+00:00

I have several maps containing a multitude of classes in my VC++ project, some

  • 0

I have several maps containing a multitude of classes in my VC++ project, some of them default constructable, others not. When trying to build, I get a “no appropriate default constructor available” error. The problem is that the error is listed to occur in line 173 of map.cpp, which is the code for operator[]. It would seem that I’m accidentally calling operator[] (which implicitly calls the mapped type’s default constructor) on one of my non-default constructable maps, but VS doesn’t give me any info on where the error originated.

How can I find the part in my code that’s causing this problem?

  • 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-13T19:00:55+00:00Added an answer on May 13, 2026 at 7:00 pm

    You’re probably looking inside the error list window. Which I don’t use that often for C++ projects.

    Go to the output window and check a little further down, you should be able to double click the line that will bring you to the type in question.

    Doing a search for : error inside the output window is very common for me as well as : fatal to find the source of the errors. Also if you have C++ keyboard shortcuts setup you can keep hitting F4 to go down the list of errors.

    To reset to the default C++ keyboard mappings:
    Options -> Environment -> Keyboard
    Then reset keyboard mappings to: Visual C++ 6.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several cron jobs and I'd like to perform some calculations on them,
I have several GWT Maps API JavaScriptObjects (LatLng, Polyline) which I want to send
I have to show several brands on my google maps, one can be a
I have a complex page that has several user controls like galleries, maps, ads
I have written a class (AbcdBase) which holds several static objects, these include maps
I have a Hashtable that maps strings to ints. Strings are unique, but several
I have to parse several comma-separated files containing headers via a generic parser. The
I have several Flash animations (maps with buttons that show/hide layers, slideshows, etc.). I'm
i have a series of links to specific addresses on google maps. several of
I have defined several maps that encaspulate a selected piece of text, e.g. to

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.