Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Is change of parameter default value binary compatible change?
QtWS25 Last Chance

Is change of parameter default value binary compatible change?

Scheduled Pinned Locked Moved C++ Gurus
2 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vsorokin
    wrote on last edited by
    #1

    simple example:

    @class A {
    public:
    void foo(int value = 1);
    }@
    changed on
    @class A {
    public:
    void foo(int value = 100);
    }@

    Is it binary compatible?

    --
    Vasiliy

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You can have a look at this "KDE techbase article":http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++ to see what you can do or not for binary compatibility

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved