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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:35:31+00:00 2026-06-01T07:35:31+00:00

I get compiler errors in : template<class _Other1, class _Other2> _Pair_base(_Other1&& _Val1, _Other2&& _Val2)

  • 0

I get compiler errors in :

template<class _Other1,
        class _Other2>
        _Pair_base(_Other1&& _Val1, _Other2&& _Val2)
        : first(_STD forward<_Other1>(_Val1)),
            second(_STD forward<_Other2>(_Val2))
        {   
        }

    _Ty1 first; 
    _Ty2 second;    
    };

error C2440: 'initializing' : cannot convert from 'int' to 'const PP_PropertyType 
error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized

I’m not sure if this part of code is enough… Do you have any suggestion what should I do?

Thanks for any help

  • 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-01T07:35:33+00:00Added an answer on June 1, 2026 at 7:35 am

    You are trying to initialize something like this:

    pair<SomeType, PP_PropertyType> x(foo, 1234);
    

    and it cant convert the second parameter (1234) from an int to a PP_PropertyType.

    The problem shows up in a standard library error in the base class of std::pair, but it is caused in your code.

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

Sidebar

Related Questions

template<typename T> class Base { protected: Base() {} T& get() { return t; }
I have the following: using namespace std; template<class T> class olsm; template<class T> istream&
I can't seem to find a Label control in Silverlight. I get compile errors
I want to make functor to generic function, but I get compiler error. Here
when I get a compiler error (in my case gcc) in Emacs (version 23
When the following project is compiled, I get the following compiler error: (Visual Studio
I can't get the code below to compile (see errors). Advice on correction would
When I compile my program, I get three undefined reference to 'PrintArgv(...)' errors. I
When i want to compile my project in Xcode 4.3, i get several errors
In a moment of madness, I decided to write a quadtree C++ template class.

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.