Parenthesis around call to std::numeric_limits::max to prevent problems when Windows.h is included.
Missing private after preprocessor condition.
Bug 2645770: Missing getline implementation for flex_string
Refactor.
Bug 2657248: flex_string replace error when replacing from an empty range
Bug 2657248: take two, this time fix it properly!
Bug 2679853: flex_string cannot insert from current string.
Bug 2686155: flex_string is missing input_iterator methods