I have a C++ example where I try to set a property on a class member which is accessed through a const getter. I would expect this to give me an er ...
I have a C++ example where I try to set a property on a class member which is accessed through a const getter. I would expect this to give me an er ...
I want to make modular, enumerated matrix of const strings. I have made two typedefs globals.h pages.h pages.c page_1.h page_1.c pag ...
Let us suppose i have a function which expect argument to be a string(non const). But As we know that string literals are const in nature. Is there is ...
How to access the const variable from the parent class? I have a PI constant and I want to use it in the TCylinder class, how can I access it? I know ...
The relevant interface code that I have to deal with consists of two functions, one that retrieves objects, and the other one where I have to submit t ...
I have a little problem and can't find a way to fix it.. In my .hpp file I have declared these two functions and struct but getting the error 'passin ...
I was completing an assignment in my coding bootcamp. They asked us to use .reduce to come up with a value. However, they initialized the total value ...
In my header I have a public static const declared and I define in the source file as a class member. I want to define it in the source file because I ...
I have a constant integer vector const vector<int> v = {5,1,3,2,4} . How can I sort it without using any extra memory like vector, array etc. ...
I have a unity project with a config file (for anim names) and in another script I want to activate animation using my issue is to convert name_ ...
In Go, you can initialise a byte slice as follows (try it on Go Playground) package main import ( "fmt" "encoding/hex" ) // doStuff will be ...
For my CS class I have a variable const int m_vin, throughout my code I am required to edit this value. I was under the impression that const variable ...
I need to change a value of a static const int member. I know it’s a bit stranger thing but I need it to overcome a limitation given by framework I’m ...
returns a warning: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Is it safe (well defi ...
Is this the canonical way to create a std::experimental::observer_ptr to a non-const object that cannot mutate the value it points to? auto i = int{0 ...
This is my assignment and the code for the linked list, my task is to implement the iterator classes for the linked list, I just implemented the beg ...
Since GLSL 4.20 const-qualified variables no longer have to be initialized by constant expressions. But when I actually try to define a global const-q ...
I am implementing a function that converts string into double in C. The function is not destructive, i.e. I do not modify the string passed and I just ...
As I understand it, a distribution should not change when used to pull a random number. For a uniform distribution for example, its min/max should not ...
I hope you are well. I am very new to coding and I am trying to complete a challenge where I have to create a function and output the following to co ...