address of array at index20 (5/18/2013 6:58:48 AM) comp.lang.c++ hello group,
i use the function std::inner_product(&arya[0], &arya[4], &aryb[0],
0.0f) with the c-style and/or c++11-style array. does the compiler set
the addresses at compile time or is there a runtime... Chris
c++11 std::array init22 (5/16/2013 7:02:43 AM) comp.lang.c++ hello group,
why can i initialize a local std::array in this way:
std::array locvar{1.0f, 2.0f, 3.0f};
but as member "only" in this way:
std::array member{{1.0f, 2.0f, 3.0f}};
i use mingw g++ 4.8... Chris
lambda recursion142 (4/28/2013 4:00:07 PM) comp.lang.c++ hello group,
can a lambda function call itself for recursion purposes? thanks for
answering!
cheers, chris
... Chris
const local vs. member174 (4/25/2013 11:43:31 AM) comp.lang.c++ hello group,
what do you think/know is faster:
Matrix& Matrix::Translate(GLfloat x, GLfloat y, GLfloat z)
{
const std::array translate =
{
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0... Chris
std::move in methode713 (3/28/2013 9:12:50 AM) comp.lang.c++ does the std::move() assignement make sense here or is it used only in
ctors?
void Matrix::Ortho(GLfloat right, GLfloat top, GLfloat near, GLfloat far)
{
std::array temp =
{
1.0f / right, 0.0f, 0.0... Chris
std::array clear814 (3/26/2013 1:21:49 PM) comp.lang.c++ is it guaranteed, that std::array, 4> var = {};
sets all 16 values to 0.0f?
thanks, chris
... Chris
static/local array19 (1/10/2013 9:03:47 AM) comp.lang.c++ hello,
i have some strange behavior in my multithreaded app. i do some
matrix-multiplications in a methode. if i use local arrays there it
works, but if i use a static member array (some kind of reusable... Chris
enum class216 (12/17/2012 10:56:31 AM) comp.lang.c++ is it possible to use enum class as index in std::vector or
std::valarray without explicit conversation? ms vs express 2012 do not
compile something like:
enum class Coordinate : std::size_t { X, Y, Z };... Chris
observer pattern error (is not captured)228 (11/12/2012 11:06:21 AM) comp.lang.c++ hello group,
in my subject-methode detach(const observer& o) i used following line to
remove the observer:
observers.remove_if([](MyObserver mo){ return &o == &mo; });
gcc 4.7 (mingw) give me the err... Chris
C++11 Threads221 (11/5/2012 10:18:43 AM) comp.lang.c++ hello group,
im working on an app and have two (ok more) questions:
1) i want to sync my pgm-logic to its "natural" periode: the vertical
retrace of the monitor. i do this with a function named eglSwap... Chris
Initialization and Memory730 (6/12/2012 5:35:32 AM) comp.lang.c++ Hello,
if i write code like this:
#include
int main()
{
float big[] =
{
1.0f, 2.0f, 3.0f
};
std::vector v(big, big + sizeof(big) / sizeof(big[0]));
}
are the floats twice ... 4one(114)
Initialization and Memory #3141 (6/12/2012 5:44:58 AM) comp.lang.c++ Hello,
if i write code like this:
#include
int main()
{
float big[] =
{
1.0f, 2.0f, 3.0f
};
std::vector v(big, big + sizeof(big) / sizeof(big[0]));
}
are the floats twice ... 4one(114)
C++11 Threads221 (11/5/2012 10:18:43 AM) comp.lang.c++ hello group,
im working on an app and have two (ok more) questions:
1) i want to sync my pgm-logic to its "natural" periode: the vertical
retrace of the monitor. i do this with a function named eglSwap... 4one(114)
observer pattern error (is not captured)228 (11/12/2012 11:06:21 AM) comp.lang.c++ hello group,
in my subject-methode detach(const observer& o) i used following line to
remove the observer:
observers.remove_if([](MyObserver mo){ return &o == &mo; });
gcc 4.7 (mingw) give me the err... 4one(114)
static/local array19 (1/10/2013 9:03:47 AM) comp.lang.c++ hello,
i have some strange behavior in my multithreaded app. i do some
matrix-multiplications in a methode. if i use local arrays there it
works, but if i use a static member array (some kind of reusable... 4one(114)
std::array clear814 (3/26/2013 1:21:49 PM) comp.lang.c++ is it guaranteed, that std::array, 4> var = {};
sets all 16 values to 0.0f?
thanks, chris
... 4one(114)
std::move in methode713 (3/28/2013 9:12:50 AM) comp.lang.c++ does the std::move() assignement make sense here or is it used only in
ctors?
void Matrix::Ortho(GLfloat right, GLfloat top, GLfloat near, GLfloat far)
{
std::array temp =
{
1.0f / right, 0.0f, 0.0... 4one(114)
const local vs. member174 (4/25/2013 11:43:31 AM) comp.lang.c++ hello group,
what do you think/know is faster:
Matrix& Matrix::Translate(GLfloat x, GLfloat y, GLfloat z)
{
const std::array translate =
{
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0... 4one(114)
lambda recursion142 (4/28/2013 4:00:07 PM) comp.lang.c++ hello group,
can a lambda function call itself for recursion purposes? thanks for
answering!
cheers, chris
... 4one(114)
c++11 std::array init22 (5/16/2013 7:02:43 AM) comp.lang.c++ hello group,
why can i initialize a local std::array in this way:
std::array locvar{1.0f, 2.0f, 3.0f};
but as member "only" in this way:
std::array member{{1.0f, 2.0f, 3.0f}};
i use mingw g++ 4.8... 4one(114)