Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Is change of parameter default value binary compatible change?

    C++ Gurus
    2
    2
    963
    Loading More Posts
    • 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
      vsorokin last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • First post
          Last post