Web Reference: @user1876088: The error means exactly what it says it mean. There's really nothing to add here. positionH is an int *. The function is declared as returning int. So, your return positionH attempts to convert int * to int, which is illegal. The real question here is what your code is supposed to mean. What did you try to achieve by that function? Oct 2, 2014 · To solve the need to store in single array objects of different types, you can make proxy which would contain [smart]pointer to actual objects. Or use std::reference_wrapper. Mar 11, 2025 · Learn how to solve the invalid conversion of int* to int error in C++. This guide provides clear explanations and practical examples to help you understand and resolve this common issue in C++ programming.
YouTube Excerpt: C++
Information Profile Overview
C Compiler Error Invalid Conversion - Latest Information & Updates 2026 Information & Biography
![C++ : Compiler Error: Invalid Conversion from int* to unsigned int* [-fpermissive] Information](https://i.ytimg.com/vi/-wwkBT-x3xc/mqdefault.jpg)
Details: $17M - $38M
Salary & Income Sources
![Array : Compiler error: invalid conversion from 'int' to 'int*' [-fpermissive]| Details](https://i.ytimg.com/vi/Scn6lDSLBuA/mqdefault.jpg)
Career Highlights & Achievements
![Why I'm getting this error: invalid conversion from 'const char\*' to 'char' [-fpermissive]? Information](https://i.ytimg.com/vi/lOJP6EolbYQ/mqdefault.jpg)
Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: April 3, 2026
Information Outlook & Future Earnings

Disclaimer: Disclaimer: Information provided here is based on publicly available data, media reports, and online sources. Actual details may vary.








