Errors, bugs, questions - page 1688

 
Awl Writer:

Question: How do I find my posts in MQL4 forum? About two years ago a thread was created with attached code and this code has now become interesting, but forum search is silent. If I go into my publications, this topic is not there. (deleted?)

As far as searches go, the best helper here is... Google.
 
Stanislav Korotky:
When it comes to searching here, the best helper is... Google.
Use the built-in search on mql4.com by entering your login in the author field
 
Renat Fatkhullin:
Use the built-in search on mql4.com by specifying your login in the author field

It's probably not me who needs to answer, but the person who asked the question. I understand that he tried to do it and failed.

I have a different question now. Is there another indexing engine at mql4.com, different from local one? Is it better?

 
The engine is the same one that searches its data
 
burning
 

It is not possible to specify a default parameter value in the function template:

template<typename T>
void Func1(T t1, T t2 = 0)     // error: '0' - illegal operation use
{
}

template<typename T>
void Func2(T t1, T t2 = T())   // error: 'T' - function not defined
{
}

Cannot specify default parameter type:

template<typename T = int>   // '=' - syntax error
void Func3(T t)
{
}
 
Sergei Vladimirov:

It is not possible to specify a default parameter value in the function template:

A What result do you expect?
template<typename T>
string Func1(T t = NULL) { return typename( T ); }
void OnStart()
{
        Print(Func1(   )); //какой ожидается результат?
        Print(Func1( 1 )); //нормально
}
 
Greetings. Nduk on android
Android flipper version 6.xxx
I get this error when sending messages to my email

 
A100:
And what result do you expect?

As in sys - initialization by default type constructor:

#include <iostream>
using namespace std;

template<typename T>
void Func(T t1, T t2 = T())
{
        cout << "t1 value: " << t1 << endl;
        cout << "t2 value: " << t2 << endl;
}

int main()
{
        Func(1);      // t1 value: 1    t2 value: 0
}


And in MKL it doesn't compile:

template<typename T>
void Func(T t1, T t2 = T())    // 'T' - function not defined
{
        Print("t1 value: ", t1);
        Print("t2 value: ", t2);
}

void OnStart()
{
        Func(1);

}

PS. In the previous example I threw too much out of the code and left only one parameter in the functions, this was really wrong. Corrected.

 
Vladislav Andruschenko:
Greetings. Nduk on android.
Android flipper version 6.xxx
I get this error when sending messages to my email

Thank you, it will be fixed.