mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-01 21:32:35 +02:00
Fix Template Specialization Index CodeBlock for const in printData (#4446)
This commit is contained in:
@@ -23,7 +23,7 @@ void printData(const T& data) {
|
||||
}
|
||||
|
||||
template <>
|
||||
void printData(const char*& data) {
|
||||
void printData(const char* const & data) {
|
||||
std::cout << "Specialized template for const char*: " << data << std::endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user