Skip to content
Snippets Groups Projects
Commit f73e36a8 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

switch to c++14

parent 7b52c478
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -13,3 +13,7 @@ void * operator new( std::size_t n ) {
void operator delete( void * ptr ) noexcept {
operator delete( ptr, true );
}
void operator delete( void * ptr, std::size_t ) noexcept {
operator delete( ptr, true );
}
......@@ -419,17 +419,6 @@ struct compare < smart_ptr < T > > {
 
};
 
// TODO remove after switching to c++14
template < typename T, typename ... Args >
std::unique_ptr < T > make_unique ( Args && ... args ) {
return std::unique_ptr < T > ( new T ( std::forward < Args > ( args ) ... ) );
}
template < typename T, typename ... Args >
std::smart_ptr < T > make_smart ( Args && ... args ) {
return std::smart_ptr < T > ( new T ( std::forward < Args > ( args ) ... ) );
}
} /* namespace std */
 
#endif /* __MEMORY_HPP_ */
......@@ -78,29 +78,6 @@ inline const T & make_const ( const T & ptr ) {
return ptr;
}
 
// TODO remove after switching to c++14
template < size_t ... I >
struct index_sequence {
typedef index_sequence < I ... > type;
};
template < size_t N, size_t ... I >
struct make_index_sequence_helper : make_index_sequence_helper < N - 1, N - 1, I ... > {
};
template < size_t ... I >
struct make_index_sequence_helper < 0, I ... > {
typedef index_sequence < I ... > type;
};
template < size_t N >
struct make_index_sequence : make_index_sequence_helper < N >::type {
};
template < typename ... T >
struct index_sequence_for : make_index_sequence < sizeof ... ( T ) > {
};
} /* namespace std */
 
#endif /* __UTILITY_HPP_ */
......@@ -57,7 +57,7 @@ FORCE:
$${NEW_LINE}\
export NEW_LINE$${NEW_LINE}\
$${NEW_LINE}\
CXXFLAGS:= -pipe -std=c++11 \$$(CXX_OTHER_FLAGS) -c $(CXX_FLAGS) -fPIC \$$(addprefix -I, \$$(realpath $(INCLUDE_PATHS)))$${NEW_LINE}\
CXXFLAGS:= -pipe -std=c++14 \$$(CXX_OTHER_FLAGS) -c $(CXX_FLAGS) -fPIC \$$(addprefix -I, \$$(realpath $(INCLUDE_PATHS)))$${NEW_LINE}\
$${NEW_LINE}\
SOURCES:= \$$(shell find \$$(SOURCES_BASE_DIR)/\$$(SRCDIR) -maxdepth 1 -type f -name \"*.cpp\")$${NEW_LINE}\
DEPENDENCIES:= \$$(patsubst \$$(SOURCES_BASE_DIR)/\$$(SRCDIR)%.cpp, \$$(OBJECTS_BASE_DIR)/\$$(SRCDIR)%.d, \$$(SOURCES))$${NEW_LINE}\
......
......@@ -64,7 +64,7 @@ FORCE:
$${NEW_LINE}\
export NEW_LINE$${NEW_LINE}\
$${NEW_LINE}\
CXXFLAGS:= -pipe -std=c++11 \$$(CXX_OTHER_FLAGS) -c $(CXX_FLAGS) -fPIC \$$(addprefix -I, \$$(realpath $(INCLUDE_PATHS))) -I\$$(realpath \$$(SOURCES_BASE_DIR)/../src/)$${NEW_LINE}\
CXXFLAGS:= -pipe -std=c++14 \$$(CXX_OTHER_FLAGS) -c $(CXX_FLAGS) -fPIC \$$(addprefix -I, \$$(realpath $(INCLUDE_PATHS))) -I\$$(realpath \$$(SOURCES_BASE_DIR)/../src/)$${NEW_LINE}\
$${NEW_LINE}\
SOURCES:= \$$(shell find \$$(SOURCES_BASE_DIR)/\$$(SRCDIR) -maxdepth 1 -type f -name \"*.cpp\")$${NEW_LINE}\
DEPENDENCIES:= \$$(patsubst \$$(SOURCES_BASE_DIR)/\$$(SRCDIR)%.cpp, \$$(OBJECTS_BASE_DIR)/\$$(SRCDIR)%.d, \$$(SOURCES))$${NEW_LINE}\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment