Description:
The object-oriented C++ language.
|
|
|
std::move and vc10: bug or misunderstanding?
|
| |
Consider the following boost test case:
...
class A
{
public:
void value(std::string s)
{
s_ = s;
}
std::string s_;
...
class B
{
public:
void f()
{
for (size_t i = 0; i < 10; ++i)
{
buffer_ = "Hello world";
a.value(std::move(buffer_));... more »
|
|
How to pass user input from gtk to a function ?
|
| |
i want to pass a user input from gtk input box to a function ... i made code below but i had segmentation errors ...so after looking it up i discovred that the line -> "g_signal_connect(but,"clicked ",G_CALLBACK(encode(tx1,tx2)), NULL);"
doesnt make a sense so can you help me do it .
this is program source =>... more »
|
|
String building
|
| |
I have this class:
class failure : public ::std::exception {
::std::string whatStr;
public:
explicit failure (::std::string what_) : whatStr(::std::move(what_))
{}
~failure () throw()
{}
char const* what () const throw()
{ return whatStr.c_str(); }
template <class T>... more »
|
|
Shared value for a member in all instances of a class?
|
| |
Hi again,
I've some classes with members that need to have a pointer to a GUI control.
However, the same member will have the same pointer in all instances of the class. I mean, member 'm_Temperature' from class 'CTown' will have the same value for its GUI control pointer in all instances of the class 'CTown'.... more »
|
|
Parsing response coming from server
|
| |
I am getting below response from server -
Main stream options:
EncType1=H.264
Resolution1=704*576
KeyInterval1=50
FrameRate1=25
BitflowType1=VBR
NormalBitrate1=2048
Now I need to parse the parameter and its value, I have list of parameter in client, I just need the value of the parameter.... more »
|
|
address of array at index
|
| |
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 overhead to get the addresses of array indices?
thanks & cheers, chris
|
|
|