Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in constants

Function with constant as an argument

In C++, if "int a = 3; int* p = &a;", then why is "const int* &pp = p" not allowed, but "const int* const &pp = p" is allowed?

c++ c++11 reference constants

removing constness in templated function

using c++ const on user-entered data?

c++ constants

Name Clash with Top Level constant when autoloading with Rails

Is a mutable object still constant

java constants

Constant Value Between XML and Java

java android xml constants

Creating an int array with a non-const size

c++ constants

C++ const keyword in functions

Creating array with const int size parameter in a function throws error in Visual Studio C++: expression did not evaluate to a constant

c++ visual-c++ constants

Passing a const reference down a chain of constructors

Making constant global variables of a custom struct type

go types constants

Am I breaking const-correctness if I expose a const and non-const API?

error converting a const void* to some other pointer without const_cast

c++ casting constants

Const arguments binding to non-const references in C++ templates

When is it safe to leave out a const from a function's parametrization?

Cannot match on Result in const fn due to "destructor cannot be evaluated at compile-time" even when value isn't dropped

rust constants destructor

unordered_map with referenced key

force const storing of returned by value value