mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Function definitions in headers should be inline so as to not violate ODR
This commit is contained in:
parent
c4b783fbc8
commit
7bfc070e29
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef ORCHESTRA_UTILS_H
|
||||
#define ORCHESTRA_UTILS_H
|
||||
|
||||
std::string::iterator split_ip_address(std::string& ip_address) {
|
||||
inline std::string::iterator split_ip_address(std::string& ip_address) {
|
||||
if (ip_address[0] == '[') { // IPv6
|
||||
auto split_end = std::find(ip_address.begin() + 1, ip_address.end(), ']');
|
||||
if(split_end != ip_address.end()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue