mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-02 13:52:46 +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 <>
|
template <>
|
||||||
void printData(const char*& data) {
|
void printData(const char* const & data) {
|
||||||
std::cout << "Specialized template for const char*: " << data << std::endl;
|
std::cout << "Specialized template for const char*: " << data << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user