Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Return constexpr strings from functions to avoid ODR compile failures #13720

Merged
merged 1 commit into from
Jan 11, 2019

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Jan 11, 2019

Some compilers don't include the symbol if there's no definition of the constexpr string. Instead of providing one, we're switching to constexpr functions similar to how jni.hpp does it.

@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jan 11, 2019
@kkaefer kkaefer merged commit 1185fe0 into master Jan 11, 2019
@kkaefer kkaefer deleted the constexpr-string-definition branch January 11, 2019 15:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants