Single class instance C++
c++, class
Solution
Instantiation is dynamic, at run time. Compilation errors are at compile time. So the answer is no, it's not possible to get a compilation error on any second instantiation.
You can however use a singleton, but do consider very carefully whether it's really needed.
Problem
Is it possible to create a class which could be constructed just one time? If you would try to create an other instance of it, a compile-time error should occure.