Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings/Compile Errors Generated on VC11 #11

Open
GoogleCodeExporter opened this issue Apr 21, 2016 · 1 comment
Open

Warnings/Compile Errors Generated on VC11 #11

GoogleCodeExporter opened this issue Apr 21, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Mergely file attached in case diff output fails.

Original comment by bdbrowni...@gmail.com on 7 Mar 2013 at 5:12

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant