Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7190

why if constructor of a class exist in .cpp file it's working fine but if moved to .hpp it's a run time crash

$
0
0

I am using interface reference in my class. For example::

class My_class
{
public:
My_Class(IFileReadWrite& rFile): m_rFile(rFile)
private:
IFileReadWrite& m_rFile;
}

Viewing all articles
Browse latest Browse all 7190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>