9 questions from the last 30 days
16
votes
2
answers
855
views
Why can std::string create a constexpr object only if it's a static variable?
I'm wondering why std::string can't be constexpr if it's a stack variable:
#include <string>
#include <iostream>
#include <cstring>
constexpr std::string str15 {"...
3
votes
1
answer
119
views
Deleted function compiler errors using thrust::remove in C++
I am currently attempting to use the thrust::remove function on a thrust::device_vector of structs in my main function as shown bellow:
#include <iostream>
#include <thrust/device_vector.h>...
4
votes
1
answer
114
views
Cannot declare instance members in an extension block with an unnamed receiver parameter
I am trying to declare an extension property for the int type in C# 14:
extension(int)
{
public int MyProperty => 13;
}
I am getting this compilation error:
'MyProperty': cannot declare ...
-7
votes
0
answers
123
views
Whenever I try to compile my MAUI project I get CS0246 Error
I'm trying to build a three piece Streaming Project in which I need to build an API that is already working, a Java App for Android that I haven't even started and this .NET MAUI using C# that is ...
0
votes
1
answer
78
views
Problems getting JavaFX running on VS Code
I have never used JavaFX before and I am trying to get it running in VS Code using the basic Maven project build tools and it creates the project just fine. I then go in and update all the version in ...
0
votes
0
answers
44
views
Compiler errors related to avx512 when upgrading from Eigen 3.4.0 to 5.0.0 on x86-64 RHEL cluster
I get the following error when compiling my C++17 project that uses the Eigen 5.0.1 library; I didn't see this error when using Eigen 3.4.0 on the same machine:
<path>/eigen-5.0.1/Eigen/src/Core/...
Best practices
2
votes
1
replies
24
views
Can compiler infer final type when merging objects of complementary generic type?
I want to create an object of type whole by merging objects types Omit<whole,keyof A> and A. Is there a way to do this without using a type assertion(as)?
function merge<Whole extends object, ...
-3
votes
1
answer
35
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
0
votes
0
answers
43
views
Cannot find UniProvider used by unidac10. Check the search path of package unidac10, try a clean rebuild, check the uses (implementation) sections
I’m trying to compile a Lazarus project that uses UniDAC, but Lazarus keeps failing with:
unidac10.pas(11,3) Error: Cannot find UniProvider used by unidac10.
Check the search path of package unidac10,...