Apache Mesos
Public Member Functions | List of all members
JSON::internal::ClassicLocale Class Reference

This object changes the current thread's locale to the default "C" locale for number printing purposes. More...

#include <jsonify.hpp>

Public Member Functions

 ClassicLocale ()
 
 ~ClassicLocale ()
 

Detailed Description

This object changes the current thread's locale to the default "C" locale for number printing purposes.

This prevents, for example, commas from appearing in printed numbers instead of decimal points.

NOTE: This object should only be used to guard synchronous code. If multiple blocks of code need to enforce the default locale, each block should utilize this object.

Constructor & Destructor Documentation

JSON::internal::ClassicLocale::ClassicLocale ( )
inline
JSON::internal::ClassicLocale::~ClassicLocale ( )
inline

The documentation for this class was generated from the following file: