Skip to content
  • Mats Kindahl's avatar
    4631180b
    WL#5825: Using C++ Standard Library with MySQL code · 4631180b
    Mats Kindahl authored
    This patch will make it possible to use the C++
    Standard Library by removing the min/max macros
    from the code.
    
    The patch makes the following changes:
    
    - Define macros MY_MIN and MY_MAX instead of min and max.
    - Use MY_MIN/MY_MAX in C code
    - Use MY_MIN/MY_MAX in array declarations
    - Include <algorithm> to get min/max from std
    - Add using-declarations in source files
    - Use std:: prefix for min/max in header files
    - Turning some constant declarations unsigned
    - Removing an overloaded use of 'min' as both
      macro name and variable.
    - It enables C++ builds for all files
    4631180b
    WL#5825: Using C++ Standard Library with MySQL code
    Mats Kindahl authored
    This patch will make it possible to use the C++
    Standard Library by removing the min/max macros
    from the code.
    
    The patch makes the following changes:
    
    - Define macros MY_MIN and MY_MAX instead of min and max.
    - Use MY_MIN/MY_MAX in C code
    - Use MY_MIN/MY_MAX in array declarations
    - Include <algorithm> to get min/max from std
    - Add using-declarations in source files
    - Use std:: prefix for min/max in header files
    - Turning some constant declarations unsigned
    - Removing an overloaded use of 'min' as both
      macro name and variable.
    - It enables C++ builds for all files
Loading