clangml
                                
                                
                                
                                    clangml copied to clipboard
                            
                            
                            
                        Make use of C++14 make_index_sequence
Change
https://github.com/Antique-team/clangml/blob/master/tools/bridgen/c%2B%2B/ocaml%2B%2B.h#L486
to use std::make_index_sequence
http://en.cppreference.com/w/cpp/utility/integer_sequence
Actually, use std::index_sequence_for, instead.
Would it fix something? This is C++14 and we are currently using c++11.
Even with -std=c++1y and clang++ 3.4, it doesn't compile:
tools/bridgen/c++/ocaml++.h:486:22: error: no member named 'index_sequence_for' in namespace 'std'
                                    
                                    
                                    
                                
It would fix nothing, but it would make the code clearer. Consider this low priority and something that can be done after C++14 is out. Another example is using enable_if_t here: https://github.com/Antique-team/clangml/blob/master/tools/bridgen/c%2B%2B/ocaml%2B%2B.h#L278