Warnings/Compile Errors Generated on VC11
Opened this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Compile on VC11 with std::string as KeyType
What is the expected output? What do you see instead?
No Errors/Warnings
What version of the product are you using? On what operating system?
VC11
Please provide any additional information below.
Diff to produce compilation with no errors/warnings. COMPILER_ASSERT removed
since it is outstanding issue.
121a122,126
> #if defined(_MSC_VER)
> #include <BaseTsd.h>
> typedef SSIZE_T ssize_t;
> #endif
>
526c531
< void set_position(int v) { fields_.position = v; }
---
> void set_position(int v) { fields_.position = (typename
base_fields::field_type)v; }
530c535
< void set_count(int v) { fields_.count = v; }
---
> void set_count(int v) { fields_.count = (typename
base_fields::field_type)v; }
577c582
< c->fields_.position = i;
---
> c->fields_.position = (typename base_fields::field_type)i;
690c695
< f->max_count = max_count;
---
> f->max_count = (typename base_fields::field_type)max_count;
693,695c698,700
< if (!NDEBUG) {
< memset(&f->values, 0, max_count * sizeof(value_type));
< }
---
> #ifndef NDEBUG
> memset(&f->values, 0, max_count * sizeof(value_type));
> #endif
701c706
< if (!NDEBUG) {
---
> #ifndef NDEBUG
703c708
< }
---
> #endif
863,864c868,869
< friend class btree_internal_locate_plain_compare;
< friend class btree_internal_locate_compare_to;
---
> friend struct btree_internal_locate_plain_compare;
> friend struct btree_internal_locate_compare_to;
1400a1406
> #ifndef _MSC_VER
1414a1421
> #endif
1924c1931
< int count = distance(begin, end);
---
> int count = (int)distance(begin, end);
Original issue reported on code.google.com by bdbrowni...@gmail.com
on 7 Mar 2013 at 5:10
GoogleCodeExporter commented
Mergely file attached in case diff output fails.
Original comment by bdbrowni...@gmail.com
on 7 Mar 2013 at 5:12
Attachments: