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

replace variable length arrays with std::vector #24

Merged
merged 1 commit into from Oct 3, 2014

Conversation

alex85k
Copy link

@alex85k alex85k commented Oct 3, 2014

I have prepared the most direct version of std::vector-instead-variable-c99-array, intentinally not changing the signatures. I hope you'll introduce vector parameters etc. in more consistent way than I can.

The final steps to support Windows is the described array change and osm2pgsql-dev@7d780c9 inclusion (done in master but not here).

Could you please run make check on Linux? On Windows I have 8 rounding errors, one UTF8 error and one Projection code failed to initialize (will solve it by configuring environment).


osmid_t all_parts[member_count];
int all_count = 0;
keyval::initList( &member_list );
for( i=0; i<member_count; i++ )
{
char tag = 0;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea what tag is for? Seems to be set but not used?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, oops! I got my }s mixed up.

@alex85k
Copy link
Author

alex85k commented Oct 3, 2014

Repushed with reserve() calls.

zerebubuth added a commit that referenced this pull request Oct 3, 2014
replace variable length arrays with std::vector
@zerebubuth zerebubuth merged commit 6b1a6cb into MapQuest:cpp_conversion Oct 3, 2014
@alex85k alex85k deleted the array-to-vector branch October 15, 2015 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants