'make_unique Too Few Arguments in Creator
#include <QCoreApplication>
#include <iostream>
#include <memory>
using namespace std;
class A{
public:
A(){cout << "ctorA " << endl;}
~A(){cout << "dtorA " << endl;}
};
class X{
A arr[10];
};
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
{ unique_ptr<X> upX = make_unique<X>(); }
return a.exec();
}
Qt Creator underlines std::make_unique and when I hover over it with mouse, it tells me there are "Too few arguments". Compiles and runs fine. No errors or warnings as far as I can tell. Am I doing something wrong or is this a bug in Creator or something? Newest compiler gcc7.3.something and Qt10.something. Just got it today.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
