Archive for März, 2025

C++ trailing return type

Montag, März 31st, 2025

Beispiel:
auto CClass::HasMultipleItems() -> bool {
return m_veciMember.size() > 1;
}

https://en.wikipedia.org/wiki/Trailing_return_type

Mermaid Charts

Donnerstag, März 27th, 2025

Mit Mermaid können einfach Diagramme erstellt werden.
https://www.mermaidchart.com
https://www.mermaidchart.com/play

Markdown-File:

```mermaid
graph TD;
BaseModel-->MapViewModel-->MyownMapViewModel-->NextMapViewModel

```

Apache2 Server

Mittwoch, März 12th, 2025

Error Logs:
/var/log/apache2/error.log

Seiten:
/var/www/html

C++ Lambda Captures

Freitag, März 7th, 2025

The difference is how the values are captured

  • & captures by reference
  • = captures by value
  • Example:

    int x = 1;
    auto valueLambda = [=]() { cout << x << endl; };
    auto refLambda = [&]() { cout << x << endl; };
    x = 13;
    valueLambda();
    refLambda();

    This code will print:

    1
    13

    https://stackoverflow.com/questions/21105169/is-there-any-difference-betwen-and-in-lambda-functions
    https://en.cppreference.com/w/cpp/language/lambda

    GIT https fehler ssh ausschalten

    Montag, März 3rd, 2025

    git config http.sslVerify "false"

    https://stackoverflow.com/questions/9008309/how-do-i-set-git-ssl-no-verify-for-specific-repos-only