Created
March 5, 2017 19:19
-
-
Save stryku/6e9c22433cb1fc8e30accdc29be9b0e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <char ...label_chars, typename ...rest_of_tokens, typename labels, typename ...current_tokens> | |
struct substitute_labels_impl< | |
tuple<string<'.', label_chars...>, rest_of_tokens...>, | |
labels, | |
tuple<current_tokens...>> | |
{ | |
static constexpr auto ip = labels_get_ip<labels, string<'.', label_chars...>>; | |
using str_ip = string_from_int<ip>; | |
using substitued = substitute_labels_impl< | |
tuple<rest_of_tokens...>, | |
labels, | |
tuple<current_tokens..., str_ip>>; | |
using tokens = typename substitued::tokens; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment