KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
constants
171 questions · page 1 of 4
Follow Tag
Sort by:
Newest
Votes
Active
12
votes
4
answers
OpenCL: Difference between __constant memory and const __global memory
opencl
constants
asked 2013-08-01T10:38:42.923
30
votes
3
answers
Access model-specific constants in a Rails view
ruby-on-rails
ruby
constants
asked 2013-07-04T19:33:12.907
29
votes
3
answers
C++ Static Const Member Variable Usage
c++
static
constants
member
asked 2013-06-12T02:40:18.657
8
votes
4
answers
zend framework 2 constants
php
zend-framework2
constants
asked 2013-05-09T18:19:31.560
9
votes
1
answers
Access C constants (header) from JNI (Java Native Interface)
java
c
header
java-native-interface
constants
asked 2013-05-02T09:59:39.663
13
votes
3
answers
Create a fixed size std::vector and write to the elements
c++
arrays
constants
stdvector
dynamic-arrays
asked 2013-04-05T11:09:46.783
14
votes
2
answers
Should I always replace 'const int' with 'constexpr int' in C++11 whenever possible?
c++
c++11
constants
constexpr
asked 2013-02-25T23:40:32.213
15
votes
4
answers
const vs non-const of container and its content
c++
constants
containers
asked 2013-02-11T16:07:09.233
11
votes
3
answers
Use int constant in attribute
c#
constants
asked 2013-01-09T19:19:54.340
284
votes
6
answers
Declare a constant array
arrays
go
constants
asked 2012-10-30T10:53:27.807
47
votes
5
answers
How to set python variables to true or false?
python-2.7
boolean
constants
asked 2012-09-28T16:42:08.993
53
votes
5
answers
Java constant examples (Create a java file having only constants)
java
constants
asked 2012-09-20T17:45:10.897
11
votes
1
answers
Is reinterpret cast from vector of pointers to vector of const pointers safe?
c++
vector
constants
reinterpret-cast
asked 2012-09-05T11:14:39.790
18
votes
4
answers
NSNumber constants in Obj-C
objective-c
ios
constants
nsnumber
asked 2012-09-04T17:55:45.050
10
votes
4
answers
C++ const used twice in static array declaration
c++
arrays
static
constants
asked 2012-08-23T22:05:17.337
10
votes
2
answers
C++ Initializing static const structure variable
c++
static
struct
initialization
constants
asked 2012-08-22T18:49:59.990
8
votes
4
answers
Precompiled Header with Constants issue
objective-c
xcode
constants
prefix
undeclared-identifier
asked 2012-08-16T15:53:49.270
12
votes
2
answers
Const array pointer to const values
c++
arrays
constants
const-correctness
asked 2012-08-07T17:13:41.143
20
votes
5
answers
Does this code subvert the C++ type system?
c++
constants
const-correctness
pointer-aliasing
asked 2012-06-18T05:57:07.137
8
votes
5
answers
PHP: constant as variable in function
php
constants
type-hinting
asked 2012-06-17T21:09:39.390
24
votes
2
answers
Is it possible to declare a virtual static constant value in a C++ class?
c++
inheritance
virtual
constants
static-members
asked 2012-06-06T13:50:26.290
8
votes
5
answers
undefined reference to array of constants
c++
arrays
header
linker
constants
asked 2012-05-30T12:34:43.013
30
votes
4
answers
C++ Difference between const positioning
c++
constants
asked 2012-05-23T09:07:54.327
15
votes
5
answers
Change string constant in a compiled class
java
constants
bytecode-manipulation
.class-file
asked 2012-05-21T08:45:30.180
16
votes
2
answers
Variadic templates with 'const' parameter overloading
c++
c++11
constants
variadic-templates
asked 2012-04-20T12:17:42.930
86
votes
3
answers
Check if a constant is already defined
ruby
constants
asked 2012-04-16T09:53:57.320
12
votes
3
answers
How to include an enum value in a const string?
c#
string
enums
constants
asked 2012-04-13T09:35:44.730
19
votes
1
answers
Multiple Enum Classes in one Java File
java
arrays
enums
constants
asked 2012-04-04T19:13:14.263
157
votes
6
answers
Why can't I initialize non-const static member or static array in class?
c++
static
constants
asked 2012-03-11T17:01:18.573
21
votes
3
answers
ld: duplicate symbol - caused by const
objective-c
c
constants
linker-errors
c-preprocessor
asked 2012-03-06T12:11:50.743
20
votes
8
answers
Ideal way to organize Java constants
java
coding-style
constants
code-organization
asked 2012-02-28T16:04:46.327
8
votes
1
answers
Difference between `T&` and `const T&` for all-const class
c++
constants
language-lawyer
asked 2012-02-13T18:55:19.923
11
votes
2
answers
c++ function: pass non const argument to const reference parameter
c++
constants
pass-by-reference
asked 2012-02-03T10:30:35.837
9
votes
3
answers
Concatenating __DIR__ constant with a string as an array value which is a class member in PHP
php
arrays
string
class
constants
asked 2012-01-06T15:09:40.643
101
votes
2
answers
Isn't "const" redundant when passing by value?
c++
constants
pass-by-value
asked 2012-01-03T15:06:11.460
11
votes
3
answers
Why can't we use const members in static member functions?
c++
constants
static-methods
asked 2011-12-28T18:01:26.217
23
votes
4
answers
How to call a non-const method from a const method?
c++
methods
constants
const-correctness
asked 2011-11-30T11:43:46.760
19
votes
2
answers
Am I right in saying that const_cast followed by modification on a ref-to-const bound to a temporary is okay?
c++
reference
constants
const-cast
temporary-objects
asked 2011-11-23T15:44:16.633
8
votes
1
answers
Objective-C typedef enum in global constants file
objective-c
constants
precompiled-headers
asked 2011-10-27T06:03:00.283
27
votes
1
answers
Converting a string to a defined constant in PHP
php
string
constants
asked 2011-09-29T05:10:59.677
10
votes
4
answers
Placement new breaks consts and references?
c++
reference
constants
c++11
placement-new
asked 2011-09-28T17:00:00.553
14
votes
9
answers
JS error 'redeclaration' of var when it's first line in program?
javascript
constants
asked 2011-09-28T04:04:30.283
65
votes
1
answers
Java multiple arguments dot notation - Varargs
java
constants
asked 2011-09-24T12:34:14.730
12
votes
1
answers
Using decltype to cast this to const
c++
constants
c++11
decltype
asked 2011-09-14T12:22:41.993
14
votes
3
answers
C++ const member functions are modifying member variables
c++
function
constants
member
asked 2011-09-12T15:40:32.293
63
votes
8
answers
why does accessing an element in an array take constant time?
c
arrays
time
constants
complexity-theory
asked 2011-09-04T07:31:51.133
26
votes
3
answers
Are there constants for language codes in java or in a java library?
java
internationalization
locale
constants
asked 2011-08-28T20:40:25.010
110
votes
11
answers
Where to store global constants in an iOS application?
ios
objective-c
cocoa-touch
constants
global
asked 2011-08-19T01:59:23.437
45
votes
5
answers
Why does C++ not have a const constructor?
c++
constructor
constants
asked 2011-08-04T04:20:29.207
12
votes
6
answers
Is there any benefit to declaring local variables const?
c++
variables
constants
asked 2011-08-03T22:22:37.833
page 1 of 4
Next →