Merge pull request #58 from RichardWeiYang/master

Trivial code refine
This commit is contained in:
Peter Conrad 2018-07-17 18:44:50 +02:00 committed by GitHub
commit 996dc14588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -338,11 +338,6 @@ public:
tag_type which() const {return _tag;}
};
template<typename Result>
struct visitor {
typedef Result result_type;
};
struct from_static_variant
{
variant& var;

View file

@ -173,7 +173,7 @@ namespace fc
* and variant_object's.
*
* variant's allocate everything but strings, arrays, and objects on the
* stack and are 'move aware' for values allcoated on the heap.
* stack and are 'move aware' for values allocated on the heap.
*
* Memory usage on 64 bit systems is 16 bytes and 12 bytes on 32 bit systems.
*/
@ -352,7 +352,7 @@ namespace fc
void clear();
private:
void init();
double _data; ///< Alligned according to double requirements
double _data; ///< Aligned according to double requirements
char _type[sizeof(void*)]; ///< pad to void* size
};
typedef optional<variant> ovariant;