Fix "Undefined symbols" linker error when DocumentChange::npos was used#474
Fix "Undefined symbols" linker error when DocumentChange::npos was used#474
Conversation
var-const
left a comment
There was a problem hiding this comment.
Thanks for fixing this! Please make sure that this is ok to merge/the version number in the changelog is up-to-date.
release_build_files/readme.md
Outdated
|
|
||
| ### 8.1.0 | ||
| - Changes | ||
| - Firestore: Fixed a linker error when DocumentChange::npos was used. |
There was a problem hiding this comment.
Nit: please wrap DocumentChange::npos in backticks.
| ### 8.1.0 | ||
| - Changes | ||
| - Firestore: Fixed a linker error when DocumentChange::npos was used. | ||
| ([#474](https://github.com/firebase/firebase-cpp-sdk/pull/474)). |
There was a problem hiding this comment.
Optional: I think the changelog usually links to issues, not PRs, so this link could probably be omited.
There was a problem hiding this comment.
It looks like there is a mixture of issues and PRs linked to in previous change log entries. I see your point but I personally feel like adding a link to additional context is useful for future readers. If this issue had been discovered externally then there would be an issue number; however, since it was discovered by me, a developer on the Firestore team, no issue was created. IMO, providing this link adds value at no cost. If you feel strongly I can remove it, but I like having it here.
dconeybe
left a comment
There was a problem hiding this comment.
Please make sure that this is ok to merge/the version number in the changelog is up-to-date.
I confirmed the version number at go/firebase-cpp-release.
release_build_files/readme.md
Outdated
|
|
||
| ### 8.1.0 | ||
| - Changes | ||
| - Firestore: Fixed a linker error when DocumentChange::npos was used. |
| ### 8.1.0 | ||
| - Changes | ||
| - Firestore: Fixed a linker error when DocumentChange::npos was used. | ||
| ([#474](https://github.com/firebase/firebase-cpp-sdk/pull/474)). |
There was a problem hiding this comment.
It looks like there is a mixture of issues and PRs linked to in previous change log entries. I see your point but I personally feel like adding a link to additional context is useful for future readers. If this issue had been discovered externally then there would be an issue number; however, since it was discovered by me, a developer on the Firestore team, no issue was created. IMO, providing this link adds value at no cost. If you feel strongly I can remove it, but I like having it here.
❌ Integration test FAILEDRequested by @dconeybe on commit de68c2b
|
Fix a bug where accessing
firebase::firestore::DocumentChange::nposfrom a non-Android platform results in a linker error:Here is the declaration of
npos:firebase-cpp-sdk/firestore/src/include/firebase/firestore/document_change.h
Lines 66 to 72 in 7ae9569
The fix is to add a definition of
nposinto the corresponding .cc file